Last active
December 31, 2015 05:29
-
-
Save tdewilde/7941351 to your computer and use it in GitHub Desktop.
Extension method to determine whether the given date is the last day of the 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
| public static bool IsLastDayOfTheMonth(this DateTime dateTime) | |
| { | |
| return dateTime.Month != dateTime.AddDays(1).Month; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment