Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

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}");
 
PREVIOUS NEXT
Tagged: #flutter #number #days #month
ADD COMMENT
Topic
Name
6+6 =