Time Formatting Tester

Time Formatting Tester

Test your time formatting strings with this tool.

Result

2025-03-16T18:13:52+00:00

About this Tool

Many Date Libraries offer formatting a date into a human-readable string. This is usually done by providing a string of Tokens representing the structure of the date that shall be returned. You can use this tool to quickly see how a string of tokens will turn out the current date with moment.js.

Here are some examples of time formatting strings:

ExampleResult
YYYY-MM-DD2025-03-16
YYYY-MM-DD HH:mm:ss2025-03-16 18:13:52
YYYY-MM-DD HH:mm:ss.SSS2025-03-16 18:13:52.985
YYYY-MM-DD HH:mm:ss.SSS A2025-03-16 18:13:52.985 PM
YYYY-MM-DD HH:mm:ss.SSS A Z2025-03-16 18:13:52.985 PM +00:00
MMMM Do YYYY, h:mm:ss aMarch 16th 2025, 6:13:52 pm
ddddSunday
MMM Do YYMar 16th 25
D.M.YYYY16.3.2025
h:mm:ss a6:13:52 pm
dddd, MMMM Do YYYY, h:mm:ss aSunday, March 16th 2025, 6:13:52 pm
YYYY [YYYY escaped text] YYYY2025 YYYY escaped text 2025
Qo [Quarter]1st Quarter
DDDo [Day of the year]75th Day of the year

Here you find a full list of the available tokens: https://momentjs.com/docs/#/displaying/

Courtesy ofmoment.js.