Add login
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
|
||||
int daysInMonth(int month) {
|
||||
var now = DateTime.now();
|
||||
|
||||
var lastDayDateTime = (month < 12) ?
|
||||
new DateTime(now.year, month + 1, 0) : new DateTime(now.year + 1, 1, 0);
|
||||
|
||||
return lastDayDateTime.day;
|
||||
}
|
||||
Reference in New Issue
Block a user