Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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);
Source by javarevisited.blogspot.com #
 
PREVIOUS NEXT
Tagged: #convert #long #date #java
ADD COMMENT
Topic
Name
4+9 =