Skip to content

Instantly share code, notes, and snippets.

@tdewilde
Last active December 31, 2015 05:29
Show Gist options
  • Select an option

  • Save tdewilde/7941351 to your computer and use it in GitHub Desktop.

Select an option

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.
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