Answers for "convert firebase timestamp to date flutter"

2

flutter firestore timestamp to datetime

DateTime.parse(timestamp.toDate().toString())
Posted by: Guest on November-06-2020
5

flutter date time to timestamp

DateTime currentPhoneDate = DateTime.now(); //DateTime

Timestamp myTimeStamp = Timestamp.fromDate(currentPhoneDate); //To TimeStamp

DateTime myDateTime = myTimeStamp.toDate(); // TimeStamp to DateTime

print("current phone data is: $currentPhoneDate");
print("current phone data is: $myDateTime");
Posted by: Guest on June-22-2020
0

flutter timestamp to datetime

DateFormat.yMMMd().add_jm().format(myDateTime);
Posted by: Guest on October-28-2021

Code answers related to "convert firebase timestamp to date flutter"

Code answers related to "Dart"

Browse Popular Code Answers by Language