Time Formatting 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-12T15:26:14+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:
Example | Result |
---|---|
YYYY-MM-DD | 2025-06-12 |
YYYY-MM-DD HH:mm:ss | 2025-06-12 15:26:14 |
YYYY-MM-DD HH:mm:ss.SSS | 2025-06-12 15:26:14.721 |
YYYY-MM-DD HH:mm:ss.SSS A | 2025-06-12 15:26:14.721 PM |
YYYY-MM-DD HH:mm:ss.SSS A Z | 2025-06-12 15:26:14.721 PM +00:00 |
MMMM Do YYYY, h:mm:ss a | June 12th 2025, 3:26:14 pm |
dddd | Thursday |
MMM Do YY | Jun 12th 25 |
D.M.YYYY | 12.6.2025 |
h:mm:ss a | 3:26:14 pm |
dddd, MMMM Do YYYY, h:mm:ss a | Thursday, June 12th 2025, 3:26:14 pm |
YYYY [YYYY escaped text] YYYY | 2025 YYYY escaped text 2025 |
Qo [Quarter] | 2nd Quarter |
DDDo [Day of the year] | 163rd Day of the year |
Here you find a full list of the available tokens: https://momentjs.com/docs/#/displaying/
This free tool is part of a growing collection of lightweight web utilities crafted by Maxim Mäder to solve everyday computer tasks.