Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

convert TimeStamp to DateTime

int ts = 1638592424384;
DateTime tsdate = DateTime.fromMillisecondsSinceEpoch(timestamp);
String fdatetime = DateFormat('dd-MMM-yyy').format(tsdate); //DateFormat() is from intl package
print(fdatetime); //output: 04-Dec-2021
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #convert #TimeStamp #DateTime
ADD COMMENT
Topic
Name
1+6 =