Timestamp Format Options
Date & Time formatting in Xano follows the PHP DateTime format. See the tables below for all formatting options.
This format follows the PHP DateTime format.
Some common examples:
M
is a short text version of a month, like Jul, whilem
is the numeric version like 07Y
is the 4 digit representation like 2023, etc. whiley
is the 2 digit version 23To achieve something like May 4th, 2023, you would use:
F jS, Y
Other tools might use something like
YYYY-MM-DD
, but in Xano, you would useY-m-d
Day
format character | Description | Example returned values |
---|---|---|
| Day of the month, 2 digits with leading zeros |
|
| A textual representation of a day, three letters |
|
| Day of the month without leading zeros |
|
| A full textual representation of the day of the week |
|
| ISO 8601 numeric representation of the day of the week |
|
| English ordinal suffix for the day of the month, 2 characters |
|
| Numeric representation of the day of the week |
|
| The day of the year (starting from 0) |
|
Week & Month
format character | Description | Example returned values |
---|---|---|
| ISO 8601 week number of year, weeks starting on Monday | Example: |
| A full textual representation of a month, such as January or March |
|
| Numeric representation of a month, with leading zeros |
|
| A short textual representation of a month, three letters |
|
| Numeric representation of a month, without leading zeros |
|
| Number of days in the given month |
|
Year
format character | Description | Example returned values |
---|---|---|
| Whether it's a leap year |
|
| ISO 8601 week-numbering year. This has the same value as | Examples: |
| An expanded full numeric representation of a year, at least 4 digits, with | Examples: |
| An expanded full numeric representation if requried, or a standard full numeral representation if possible (like | Examples: |
| A full numeric representation of a year, at least 4 digits, with | Examples: |
| A two digit representation of a year | Examples: |
Time
format character | Description | Example returned values |
---|---|---|
| Lowercase Ante meridiem and Post meridiem |
|
| Uppercase Ante meridiem and Post meridiem |
|
| Swatch Internet time |
|
| 12-hour format of an hour without leading zeros |
|
| 24-hour format of an hour without leading zeros |
|
| 12-hour format of an hour with leading zeros |
|
| 24-hour format of an hour with leading zeros |
|
| Minutes with leading zeros |
|
| Seconds with leading zeros |
|
| Example: | |
| Milliseconds. Same note applies as for | Example: |
Timezone
format character | Description | Example returned values |
---|---|---|
| Timezone identifier | Examples: |
| Whether or not the date is in daylight saving time |
|
| Difference to Greenwich time (GMT) without colon between hours and minutes | Example: |
| Difference to Greenwich time (GMT) with colon between hours and minutes | Example: |
| The same as | Examples: |
| Timezone abbreviation, if known; otherwise the GMT offset. | Examples: |
| Timezone offset in seconds. The offset for timezones west of UTC is always negative, and for those east of UTC is always positive. |
|
Full Date/Time
format character | Description | Example returned values |
---|---|---|
| ISO 8601 date | 2004-02-12T15:19:21+00:00 |
| ยป RFC 2822/ยป RFC 5322 formatted date | Example: |
| Seconds since the Unix Epoch (January 1 1970 00:00:00 GMT) | See also time() |
See the official PHP DateTime format documentation and changelog for the latest information.
Last updated