Answers for "convert given date and time into long value of time in java"

1

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 given date and time into long value of time in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language