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
    16/10/2025 04:21
    format("DD/MM/YYYY HH:mm")
    October 16, 2025
    format("MMMM D, YYYY")
    Oct 16, 2025
    format("MMM D, YYYY")
    16/10/2568
    format("DD/MM/BBBB")
    04:21 AM
    format("hh:mm A")
    04:21:41
    format("HH:mm:ss")
    October 16, 2025
    format("LL")
    Oct 16, 2025
    format("ll")
    October 16, 2025 4:21 AM
    format("LLL")
    Thursday, October 16, 2025 4:21 AM
    format("LLLL")
    2025-10-16T04:21:41+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
10
MM
The month, 2-digits
10
MMM
The abbreviated month name
Oct
MMMM
The full month name
October
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