Answers for "string to timeofday flutter"

1

flutter string to date time

DateTime.parse("string date here");
Posted by: Guest on September-15-2021
0

convert timeofday to string flutter

String formatTimeOfDay(TimeOfDay tod) {
    final now = new DateTime.now();
    final dt = DateTime(now.year, now.month, now.day, tod.hour, tod.minute);
    final format = DateFormat.jm();  //"6:00 AM"
    return format.format(dt);
}
Posted by: Guest on April-25-2020
0

string to timeofday flutter

TimeOfDay _startTime = TimeOfDay(hour:int.parse(s.split(":")[0]),minute: int.parse(s.split(":")[1]));
Posted by: Guest on May-12-2020

Code answers related to "string to timeofday flutter"

Code answers related to "Dart"

Browse Popular Code Answers by Language