Created
October 16, 2019 07:58
-
-
Save CaiJingLong/bcc30e22475f39d0d1a2bdf084d2f3fd to your computer and use it in GitHub Desktop.
day of month
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int dayOfMonth(int year, int month) { | |
return DateTime(year, month + 1, 1).subtract(Duration(days: 1)).day; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment