DateTimeExtensions extension

DateTime common extensions

on

Properties

endOfDay DateTime

Available on DateTime, provided by the DateTimeExtensions extension

Returns the end of the day for this DateTime object.
no setter
isWeekend bool

Available on DateTime, provided by the DateTimeExtensions extension

Checks if the given date is on a weekend.
no setter
startOfDay DateTime

Available on DateTime, provided by the DateTimeExtensions extension

Returns the start of the day for this DateTime object.
no setter

Methods

addBusinessDays(int count) DateTime

Available on DateTime, provided by the DateTimeExtensions extension

Adds a specified number of business days, skipping weekends.
isSameDay(DateTime other) bool

Available on DateTime, provided by the DateTimeExtensions extension

Determines whether two DateTime objects are on the same day.
subtractBusinessDays(int count) DateTime

Available on DateTime, provided by the DateTimeExtensions extension

Subtracts a specified number of business days, skipping weekends.