prettyWeekdayString method
Implementation
String prettyWeekdayString(DateTime date) {
if (date.year == DateTime.now().year) {
return "${weekdays.weekday(date)}, ${date.day}. ${months.monthShort(date)}";
} else {
return "${weekdays.weekday(date)}, ${date.day}. ${months.monthShort(date)} ${date.year}";
}
}