DateTimeExtension extension
- on
Methods
-
addMonths(
int count) → DateTime -
Available on DateTime, provided by the DateTimeExtension extension
This is to simulate C# behaviour. We guarantee the month will change to neighbour value and the day value is valid for that month. -
addYears(
int count) → DateTime -
Available on DateTime, provided by the DateTimeExtension extension
This is to simulate C# behaviour. We guarantee the month will NOT change and the day value is valid for that month. -
coerceIn(
{DateTime? min, DateTime? max}) → DateTime -
Available on DateTime, provided by the DateTimeExtension extension
-
dayCountInThisMonth(
) → int -
Available on DateTime, provided by the DateTimeExtension extension
-
formatToDTOString(
{bool useZForUTC = true}) → String -
Available on DateTime, provided by the DateTimeExtension extension
-
formatToShortDateDisplay(
) → String -
Available on DateTime, provided by the DateTimeExtension extension
-
formatToShortDateStorage(
) → String -
Available on DateTime, provided by the DateTimeExtension extension
-
isSameDay(
DateTime other) → bool -
Available on DateTime, provided by the DateTimeExtension extension
-
isToday(
) → bool -
Available on DateTime, provided by the DateTimeExtension extension
-
timeZoneString(
{bool useZForUTC = true}) → String -
Available on DateTime, provided by the DateTimeExtension extension
-
toDayTruncation(
) → DateTime -
Available on DateTime, provided by the DateTimeExtension extension
-
tomorrow(
) → DateTime -
Available on DateTime, provided by the DateTimeExtension extension
-
yesterday(
) → DateTime -
Available on DateTime, provided by the DateTimeExtension extension