Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

flutter day in month

int daysInMonth(DateTime date) =>  DateTimeRange(
  start:  DateTime(date.year, date.month,1),
  end: DateTime(date.year, date.month + 1))
  .duration
  .inDays;

print("Days in current month is ${daysInMonth(DateTime.now())}");
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #flutter #day #month
ADD COMMENT
Topic
Name
3+9 =