Answers for "convert long to datetime using timestamp java"

0

convert long to date in java

//The Date constructor (click the link!) accepts the time as long in milliseconds, not seconds.
long currentDateTime = System.currentTimeMillis();
//creating Date from millisecond
Date currentDate = new Date(currentDateTime);
Posted by: Guest on April-17-2021

Code answers related to "convert long to datetime using timestamp java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language