syntax:functions:date
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
syntax:functions:date [2021/08/29 23:55] – craigt | syntax:functions:date [2023/11/24 21:06] (current) – [Examples] craigt | ||
---|---|---|---|
Line 13: | Line 13: | ||
=====Arguments===== | =====Arguments===== | ||
^Argument^Type^Description^ | ^Argument^Type^Description^ | ||
- | |datetime | + | |datetime |
- | |format | + | |format |
**Return value type:** Number (date-time serial value). | **Return value type:** Number (date-time serial value). | ||
\\ | \\ | ||
- | ==== Date-Time format components ==== | + | ==== Date-Time format |
- | The specifiers below are case-sensitive. | + | A //format string// defines a formatting template for dates and times. Its components can be put together in any combination. If a character doesn' |
+ | |||
+ | The specifiers below are case-sensitive | ||
^ Date format specifier^ | ^ Date format specifier^ | ||
| d |The day of the month, from 1 through 31. | | | d |The day of the month, from 1 through 31. | | ||
Line 54: | Line 56: | ||
If a time value is used for the // | If a time value is used for the // | ||
+ | While it can be convenient, in some cases, to omit the //format//, it is recommended to specify the date format explicitly, when possible, to ensure deterministic behavior. | ||
\\ | \\ | ||
=====Examples===== | =====Examples===== | ||
Line 65: | Line 68: | ||
date(' | date(' | ||
+ | |||
+ | date(' | ||
+ | | ||
\\ | \\ |
syntax/functions/date.txt · Last modified: 2023/11/24 21:06 by craigt