Skip to content

Commit 2c0f98b

Browse files
committed
feat(date-time-utils):create format for dd
1 parent 5834597 commit 2c0f98b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/src/utils/date_time_utils.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ enum DateTimeFormat {
3636
FORMAT_3_DD_MMM,
3737
FORMAT_3_dd_MM_yyyy,
3838
FORMAT_3_dd_MM_yyyy_HH_MM_AM_PM,
39+
Format_dd,
3940
FORMAT_UNKNOWN,
4041
}
4142

@@ -100,6 +101,8 @@ extension DateTimeFormatExtension on DateTimeFormat {
100101
return "dd/MM/yyyy";
101102
case DateTimeFormat.FORMAT_3_dd_MM_yyyy_HH_MM_AM_PM:
102103
return "dd/MM/yyyy hh:mm a";
104+
case DateTimeFormat.FORMAT_dd:
105+
return "dd";
103106
default:
104107
throw Exception(
105108
'Unimplemented $this in extension DateTimeFormatExtension',

0 commit comments

Comments
 (0)