everyone i am using MongoDB as my backend, i don't have any clues how can i convert DateTime type to ISODate MongoDB , i try to look through document and searching, i can't find anything about it, do you have any idea about this? thank in advance
you can convert dart DateTime to ISO8601Date format with code like this:
DateTime now = DateTime.now();
String isoDate = now.toIso8601String();
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.