getFormattedDate method

  1. @override
String getFormattedDate({
  1. DateTime? customDate,
})
override

Implementation

@override
String getFormattedDate({DateTime? customDate}) {
  CalendarDateTime? dateTime;
  if (customDate != null) {
    dateTime = CalendarDateTime.parseDateTime(customDate.toString());
  } else {
    dateTime = _getSelectedDate();
  }
  return "${dateTime!.day} ${Translator.getFullMonthNames()[dateTime.month - 1]} ${dateTime.year}";
}