Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

convert long to date android

String longV = "1343805819061";
 long millisecond = Long.parseLong(longV);
 // or you already have long value of date, use this instead of milliseconds variable.
 String dateString = DateFormat.format("MM/dd/yyyy", new Date(millisecond)).toString();
 
PREVIOUS NEXT
Tagged: #convert #long #date #android
ADD COMMENT
Topic
Name
3+6 =