formatShortDate method

String formatShortDate()

Formats the date as a zero-padded short form: dd Mon yyyy

Example:

SlickDateTime(DateTime(2025, 10, 9)).formatShortDate(); // "09 Oct 2025"

Implementation

String formatShortDate() {
  if (_isNA) return 'N/A';

  return '${this!.day.toString().padLeft(2, '0')} '
      '${monthName()} '
      '${this!.year.toString()}';
}