Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - How to convert int into date format type in java
How to convert int into date format type in java
Public static void main(String[] args) {

//Assign a date object and initialize it to indicate that since the standard reference time (called "era"),

//specified number of milliseconds since 1970 65438+ 10/0: 00 GMT)

Date date = new date (3600);

//Use the date formatting class to complete the output of the date to the formatted string.

simple date format format = new simple date format(" yyyy-MM-DD hh:MM:SS:SS ");

system . out . println(format . format(date));

}