Skip to content

Commit

Permalink
Update Date.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Rene-Roscher committed Sep 1, 2024
1 parent 49399fb commit 13cfd90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/js/Composables/Date.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import moment from "moment";
export const format = (value, format) => moment(value).format(format)

/** Date Time Format */
export const dateTime = (value, format = 'DD.MM.YYYY - HH:mm') => this.format(value, format)
export const dateTime = (value, formatString = 'DD.MM.YYYY - HH:mm') => format(value, formatString)

/** Date Format */
export const date = (value, format = 'DD.MM.YYYY') => this.format(value, format)
export const date = (value, formatString = 'DD.MM.YYYY') => format(value, formatString)

/** INTL Date Format */
export const intlDate = (value) => new Intl.DateTimeFormat('default', { dateStyle: 'full' }).format(new Date(value))
Expand Down

0 comments on commit 13cfd90

Please sign in to comment.