如何在flutter中将特定的String转换为DateTime Format
How to convert the specific String to DateTime Format in flutter
String date = 'July 7,2020 10:00 AM'
如何将上述字符串转换为日期时间格式?
String date = 'July 7,2020 10:00 AM';
DateFormat d = DateFormat('MMMM d,yyyy hh:mm a');
print(d.parse(date));
更多信息:https://api.flutter.dev/flutter/intl/DateFormat-class.html
String date = 'July 7,2020 10:00 AM'
如何将上述字符串转换为日期时间格式?
String date = 'July 7,2020 10:00 AM';
DateFormat d = DateFormat('MMMM d,yyyy hh:mm a');
print(d.parse(date));
更多信息:https://api.flutter.dev/flutter/intl/DateFormat-class.html