diff options
| author | Aldrik Ramaekers <aldrik@amftech.nl> | 2022-08-17 13:54:48 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@amftech.nl> | 2022-08-17 13:54:48 +0200 |
| commit | 8ed1b574e8b5e9fc806aedc87af7aabcf73da6e6 (patch) | |
| tree | 5126fb297b9df2829b6b34f966f615183b4c73af /lib/utils | |
| parent | 3d25fdc99fd37f3b5e37f25b7a38804a02130426 (diff) | |
b0.2
Diffstat (limited to 'lib/utils')
| -rw-r--r-- | lib/utils/date.dart | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/utils/date.dart b/lib/utils/date.dart index 7a66c03..07596a2 100644 --- a/lib/utils/date.dart +++ b/lib/utils/date.dart @@ -1,4 +1,24 @@ class DateHelper { + static String getWeekdayNameFull(int nr) { + switch (nr) { + case DateTime.monday: + return 'Maandag'; + case DateTime.tuesday: + return 'Dinsdag'; + case DateTime.wednesday: + return 'Woensdag'; + case DateTime.thursday: + return 'Donderdag'; + case DateTime.friday: + return 'Vrijdag'; + case DateTime.saturday: + return 'Zaterdag'; + case DateTime.sunday: + return 'Zondag'; + } + return ''; + } + static String getWeekdayName(int nr) { switch (nr) { case DateTime.monday: |
