MagicDateExtension extension
Extension methods for nullable DateTime objects.
- on
Properties
- isToday → bool
-
Available on DateTime?, provided by the MagicDateExtension extension
Checks if the DateTime instance represents the current day.no setter
Methods
-
format(
{String format = 'dd MMM, yyyy', String placeholder = ''}) → String -
Available on DateTime?, provided by the MagicDateExtension extension
Formats the DateTime instance to a string based on the provided format. -
isAfterWithoutTime(
DateTime? otherDate) → bool -
Available on DateTime?, provided by the MagicDateExtension extension
Checks if the DateTime instance is after another DateTime instance when considering only the date (year, month, day) without the time. -
isBeforeWithoutTime(
DateTime? otherDate) → bool -
Available on DateTime?, provided by the MagicDateExtension extension
Checks if the DateTime instance is before another DateTime instance when considering only the date (year, month, day) without the time.