We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DateTime date =DateFormat("hh:mm a").parse('10:00');
Unhandled Exception: FormatException: Trying to read from 10:00 at position 6 #0 _DateFormatField.throwFormatException (package:intl/src/intl/date_format_field.dart:86) dart-lang/intl#1 _DateFormatField.parseLiteral (package:intl/src/intl/date_format_field.dart:55) dart-lang/intl#2 _DateFormatQuotedField.parse (package:intl/src/intl/date_format_field.dart:118) dart-lang/intl#3 DateFormat._parse (package:intl/src/intl/date_format.dart:394) dart-lang/intl#4 DateFormat.parse (package:intl/src/intl/date_format.dart:325)
The text was updated successfully, but these errors were encountered:
The value you are trying to parse doesn't follow the format defined. You could solve this issue like this:
1. DateTime date = DateFormat('hh:mm a').parse('10:00 AM'); // 'a' stands for am/pm marker 2. DateTime date = DateFormat('hh:mm').parse('10:00'); // remove the am/pm marker altogether
Sorry, something went wrong.
I assume this solved the issue - if not, please reopen!
No branches or pull requests
DateTime date =DateFormat("hh:mm a").parse('10:00');
The text was updated successfully, but these errors were encountered: