Java Program to Get a Date From Milliseconds Using Date() Constructor

Java Program to Get a Date From Milliseconds Using Date() Constructor

Java Program to Get a Date From Milliseconds Using Date() Constructor

// Java program to get a date from milliseconds 
// using Date() constructor

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Date date = new Date(732153600000L);
    System.out.println("Date: " + date);
  }
}
Date: Mon Mar 15 00:00:00 GMT 1993

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coding Deekshi. Here, I post about programming to help developers.

Share on:

Leave a Comment