toDateTimeLong property
String
get
toDateTimeLong
Formats date and time as 'February 24, 2024, 10:30 PM'.
Example:
final date = DateTime(2024, 2, 24, 22, 30);
final formatted = date.toDateTimeLong;
// returns: 'February 24, 2024, 10:30 PM'
Implementation
String get toDateTimeLong => '$toMmmmDdYyyy, $toTimeAmPm';