Skip to content

Commit

Permalink
Updated: default dateTime format(#85zrnzcpm)
Browse files Browse the repository at this point in the history
  • Loading branch information
disha1202 committed Feb 23, 2023
1 parent 326cf11 commit 53c03e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ app.config.globalProperties.$filters = {
formatDate(value: any, inFormat?: string, outFormat?: string) {
// TODO Make default format configurable and from environment variables
if(inFormat){
return DateTime.fromFormat(value, inFormat).toFormat(outFormat ? outFormat : 'MM-DD-YYYY');
return DateTime.fromFormat(value, inFormat).toFormat(outFormat ? outFormat : 'MM-dd-yyyy');
}
return DateTime.fromISO(value).toFormat(outFormat ? outFormat : 'MM-DD-YYYY');
return DateTime.fromISO(value).toFormat(outFormat ? outFormat : 'MM-dd-yyyy');
},
formatUtcDate(value: any, inFormat?: any, outFormat?: string) {
// TODO Make default format configurable and from environment variables
Expand Down

0 comments on commit 53c03e2

Please sign in to comment.