[flutter]Format Exception in DateFormat parse ()
Situation
When I try to convert a character string representing the time to DateTime type with parse () method of DateFormat with flutter, Format Exception is thrown.
DateTime dt=DateFormat.Hm().parse("19 : 00") //Format Exception
Cause and Solution
The format of the character string is incorrect. Delete the space before and after ":".
DateTime dt=DateFormat.Hm().parse("19:00")
Personally, I would like to put a space before and after the number ...
Recent Posts
See AllWhat want to do I want to create an input form using TextField. For example, if the input content is a monetary amount, I would like to...
What want to do There is a variable that remain unchanged once the initial value is determined. However, it cannot be determined yet when...
What want to do As the title suggests. Place two widgets in one line on the screen One in the center of the screen and the other on the...
Comments