Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(date-time-utils):create format for dd #21

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading