Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

flutter timestamp to datetime

Timestamp t = document['timeFieldName'];
DateTime d = t.toDate();
print(d.toString()); //2019-12-28 18:48:48.364
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #flutter #timestamp #datetime
ADD COMMENT
Topic
Name
4+4 =