Answers for "flutter get days and hours between dates"

3

flutter datetime add hours

var today = new DateTime.now();
var fiftyDaysFromNow = today.add(new Duration(hours: 1));
Posted by: Guest on February-27-2020
0

flutter get number of days in month

DateTime now = new DateTime.now();
DateTime lastDayOfMonth = new DateTime(now.year, now.month + 1, 0);
print("${lastDayOfMonth.month}/${lastDayOfMonth.day}");
Posted by: Guest on June-10-2021

Code answers related to "flutter get days and hours between dates"

Browse Popular Code Answers by Language