1.0.7 • Published 8 months ago
dayjs-momentjs-format-string-library v1.0.7
dayjs-momentjs-format-string-library
saving commonly used dayjs or momentjs 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 |