Added date pretty print

This commit is contained in:
2024-11-14 09:37:23 +05:30
parent c0ca9542c3
commit e52db038f4
2 changed files with 26 additions and 13 deletions

View File

@@ -157,6 +157,10 @@ class GlobalModel extends ChangeNotifier {
return DateFormat("dd-MM-yyyy").format(this.currentDate);
}
String get prettyDate {
return DateFormat("EEE, MMM d").format(this.currentDate);
}
void incrDate() {
this.currentDate = this.currentDate.add(const Duration(days: 1));
this.isMenuAvailable();