formatDateTime method

String formatDateTime()

Formats the date and time as dd Mon yyyy HH:mm

Example:

SlickDateTime(DateTime(2025, 10, 9, 7, 5)).formatDateTime(); // "09 Oct 2025 07:05"

Implementation

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

  final date = formatShortDate();
  final time =
      '${this!.hour.toString().padLeft(2, '0')}:${this!.minute.toString().padLeft(2, '0')}';
  return '$date $time';
}