@kzttools/dayjs-momentjs-format-string-library
v1.0.14
Published
saving commonly used iso8601 format string and pass in the semantic key to get the corresponding format.
Downloads
3
Readme
dayjs-momentjs-format-string-library
saving commonly used iso8601 format string and pass in the semantic key to get the corresponding format.
API
| Variable | Description | FormatString |
| ------------------------- | ------------------------------------------------------------------------------ | ------------ |
| formatDate
| Date format | YYYY-MM-DD
|
| formatTime24Hour
| 24-hour time format | HH:mm:ss
|
| formatTime
| Same 24-hour time format | HH:mm:ss
|
| formatTime12Hour
| 12-hour time format | hh:mm:ss A
|
| formatDayOfWeekFull
| Full day of the week format | dddd
|
| formatDateWithSeparator
| Date format with separator: Year-Month-Day, separator specified as a parameter | |
reference
wikipedia-ISO_8601 dayjs format momentjs format