Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

flutter timestamp to datetime

Map<String, dynamic> map = docSnapshot.data()!;
DateTime dt = (map['timestamp'] as Timestamp).toDate();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #flutter #timestamp #datetime
ADD COMMENT
Topic
Name
7+9 =