NullableDateExtensions extension

Safe helper methods for nullable dates.

on

Methods

toFormatted({String pattern = defaultDateFormat, String fallback = DateFormatter.fallback, String? locale}) String

Available on DateTime?, provided by the NullableDateExtensions extension

Backward-compatible alias.
toFormattedDate({String format = defaultDateFormat, String fallback = DateFormatter.fallback, String? locale}) String

Available on DateTime?, provided by the NullableDateExtensions extension

Formats a nullable date for display.