JsonTree.js - Documentation - Date Format
Below is a list of all the formatting options which state how dates are displayed (where supported).
Download Now
v4.7.0 - 10th Dec 2024
Below is a list of all the formatting options which state how dates are displayed (where supported).
Download Now
Formatter: | Description: |
---|---|
{hhh} | The hour of the day in 12-hour format, from 00 through 12. |
{hh} | The hour of the day, from 00 through 23. |
{h} | The hour of the day, from 0 through 23. |
{MM} | The minutes of the day, from 00 through 59. |
{M} | The minutes of the day, from 0 through 59. |
{ss} | The seconds of the day, from 00 through 59. |
{s} | The seconds of the day, from 0 through 59. |
{fff} | The milliseconds of the day, from 000 through 999. |
{ff} | The milliseconds of the day, from 00 through 999. |
{f} | The milliseconds of the day, from 0 through 999. |
{dddd} | The full name of the day of the week. |
{ddd} | The abbreviated name of the day of the week. |
{dd} | The day of the month, from 01 through 31. |
{d} | The day of the month, from 1 through 31. |
{o} | The day ordinal. |
{mmmm} | The full name of the month. |
{mmm} | The abbreviated name of the month. |
{mm} | The month, from 01 through 12. |
{m} | The month, from 1 through 12. |
{yyyy} | The year as a four-digit number. |
{yyy} | The year, from 000 to 999. |
{yy} | The year, from 00 to 99. |
{y} | The year, from 0 to 99. |
{aa} | Shows AM/PM based on the time. |