Time Formatting Tester

Time Formatting Tester

tester

Test your time formatting strings with this tool.

Ads are disabled, if you wish to support me please consider disabling your ad blocker.

Result

2025-06-01T08:28: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-06-01
YYYY-MM-DD HH:mm:ss2025-06-01 08:28:52
YYYY-MM-DD HH:mm:ss.SSS2025-06-01 08:28:52.696
YYYY-MM-DD HH:mm:ss.SSS A2025-06-01 08:28:52.696 AM
YYYY-MM-DD HH:mm:ss.SSS A Z2025-06-01 08:28:52.696 AM +00:00
MMMM Do YYYY, h:mm:ss aJune 1st 2025, 8:28:52 am
ddddSunday
MMM Do YYJun 1st 25
D.M.YYYY1.6.2025
h:mm:ss a8:28:52 am
dddd, MMMM Do YYYY, h:mm:ss aSunday, June 1st 2025, 8:28:52 am
YYYY [YYYY escaped text] YYYY2025 YYYY escaped text 2025
Qo [Quarter]2nd Quarter
DDDo [Day of the year]152nd Day of the year

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

Courtesy ofmoment.js.

Ads are disabled, if you wish to support me please consider disabling your ad blocker.