Skip to content

Commit

Permalink
feat(date-time-utils):create format for dd
Browse files Browse the repository at this point in the history
  • Loading branch information
kapdroid committed Jul 3, 2024
1 parent 5834597 commit 2c0f98b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/src/utils/date_time_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ enum DateTimeFormat {
FORMAT_3_DD_MMM,
FORMAT_3_dd_MM_yyyy,
FORMAT_3_dd_MM_yyyy_HH_MM_AM_PM,
Format_dd,
FORMAT_UNKNOWN,
}

Expand Down Expand Up @@ -100,6 +101,8 @@ extension DateTimeFormatExtension on DateTimeFormat {
return "dd/MM/yyyy";
case DateTimeFormat.FORMAT_3_dd_MM_yyyy_HH_MM_AM_PM:
return "dd/MM/yyyy hh:mm a";
case DateTimeFormat.FORMAT_dd:
return "dd";
default:
throw Exception(
'Unimplemented $this in extension DateTimeFormatExtension',
Expand Down

0 comments on commit 2c0f98b

Please sign in to comment.