skip to Main Content

Flutter – Convert String to TimeOfDay issue

I'm getting the issue when converting string to TimeOfday. It was working before but now I am getting the issue. try { final format = DateFormat.jm(); //"6:00 AM" TimeOfDay day = TimeOfDay.fromDateTime(format.parse("6:00")); } catch(ex) { PLPrint(name: "CheckTest",value: "${ex.toString()}"); } I…

VIEW QUESTION

Can Flutter format 24hr time to 12hr?

when user using 24 hours format, I have pick time with showTimepicker have set alwaysUse24HourFormat:false and when selecting time displays in 12 hour format but selected timeofday is 24 hours format ,so how change it into 12 hours format? I…

VIEW QUESTION
Back To Top
Search