dev_tool/tool_logo/white/dayjs.svg

Test format function with DayJs Online playground

This hands-on tool allows you to experiment with different format configurations in real time, helping you understand and implement Day.js functionality in your projects.

Parameters
Common use
Setting that most people use
    Manual
    Input by your self
    12/04/2025 16:40
    format("DD/MM/YYYY HH:mm")
    April 12, 2025
    format("MMMM D, YYYY")
    Apr 12, 2025
    format("MMM D, YYYY")
    12/04/2568
    format("DD/MM/BBBB")
    04:40 PM
    format("hh:mm A")
    16:40:27
    format("HH:mm:ss")
    April 12, 2025
    format("LL")
    Apr 12, 2025
    format("ll")
    April 12, 2025 4:40 PM
    format("LLL")
    Saturday, April 12, 2025 4:40 PM
    format("LLLL")
    2025-04-12T16:40:27+00:00
    format("YYYY-MM-DDTHH:mm:ssZ")
Date Value String
Text in any formats that can new Date(...)
Timezone
Enter timezone of the date
Formatting
Enter desired formatting you can see a hint from dropdown
Locale
Output language
Token Tips
These are list of token that you can use in Formatting
YY
Two-digit year
25
YYYY
Four-digit year
2025
M
The month, beginning at 1
4
MM
The month, 2-digits
04
MMM
The abbreviated month name
Apr
MMMM
The full month name
April
View All
Output
N/A
Typescript
Sharing / Save
Copy the link to easily share it with friends, or save the result to revisit and use it later at your convenience.
Copy link
Save
dev_tool/tool_logo/black/dayjs.svg

Other Day.Js common operations

More operations you can play with.

dev_tool/tool_logo/black/dayjs.svg

DayJs blogs

Knowledge / tutorial / howto about DayJs