DateTimeValidation extension
Extension on the DateTime class to allow further validation for DateTime checks perfomed for specific calendar features.
- on
Methods
-
isSameCalendarMonth(
DateTime other) → bool - States whether this DateTime object is in the same calendar month as the provided DateTime object.
-
isSameCalendarWeek(
DateTime other) → bool - States wheter the this DateTime object is in the same calendar week as the provided DateTime object.
-
lastDayOfMonth(
) → int - Returns the last day of the month / end of month.