DateTimeExtensions extension

DateTime common extensions

on

Properties

endOfDay DateTime
Returns the end of the day for this DateTime object.
no setter
isWeekend bool
Checks if the given date is on a weekend.
no setter
startOfDay DateTime
Returns the start of the day for this DateTime object.
no setter

Methods

addBusinessDays(int count) DateTime
Adds a specified number of business days, skipping weekends.
isSameDay(DateTime other) bool
Determines whether two DateTime objects are on the same day.
subtractBusinessDays(int count) DateTime
Subtracts a specified number of business days, skipping weekends.