Created
July 17, 2013 17:02
-
-
Save DexterHaslem/6022425 to your computer and use it in GitHub Desktop.
is it softs contract expiration party time?
This file contains 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
private static bool IsLastBusinessDayOfMonth(DateTime date, int day) | |
{ | |
if (day > DateTime.DaysInMonth(date.Year, date.Month)) | |
return false; | |
DayOfWeek dayOfWeek = new DateTime(date.Year, date.Month, day).DayOfWeek; | |
return dayOfWeek != DayOfWeek.Sunday && dayOfWeek != DayOfWeek.Saturday; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment