formattedDate property

String get formattedDate

Returns the formatted date in "12 Sep 2024" format.

Implementation

String get formattedDate {
  const List<String> monthNames = [
    "Jan",
    "Feb",
    "Mar",
    "Apr",
    "May",
    "Jun",
    "Jul",
    "Aug",
    "Sep",
    "Oct",
    "Nov",
    "Dec",
  ];
  return "$day ${monthNames[month - 1]} $year";
}