syntax:functions:format
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
syntax:functions:format [2015/02/01 14:27] – created dmitry | syntax:functions:format [2019/11/16 14:55] – dmitry | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Format(date_as_number, | + | ===== format(date_as_number, |
- | Converts // | + | Converts // |
- | ^ Example | + | ^ Example |
- | | format(41640,' | + | | format(41640,' |
- | | format(41640,' | + | | format(41640,' |
=== Format string components === | === Format string components === | ||
- | Case-sensitive. | + | A format string defines a formatting template for dates. Its components can be put together in any combination. If a character doesn' |
+ | |||
+ | Note that the colon (":" | ||
+ | |||
+ | **Attention** :!: The format components are case sensitive. | ||
^ Character | ^ Character | ||
- | | | + | | |
- | | | + | | |
- | | | + | | |
| M |The month, from 1 through 12. | | | M |The month, from 1 through 12. | | ||
| MM |The month, from 01 through 12. | | | MM |The month, from 01 through 12. | | ||
| MMM |The abbreviated name of the month. | | MMM |The abbreviated name of the month. | ||
| MMMM |The full name of the month. | | MMMM |The full name of the month. | ||
- | | | + | | |
- | | | + | | dd |The day of the month, from 01 through 31. | |
- | | | + | | ddd |The abbreviated name of the day of the week. | |
+ | | h |The hour, using a 12-hour clock from 1 to 12. | | ||
+ | | | ||
+ | | | ||
+ | | HH |The hour, using a 24-hour clock from 01 to 24. | | ||
+ | | m |The minute, from 0 through 59. | | ||
+ | | mm |The minute, from 00 through 59. | | ||
+ | | s |The second, from 0 through 59. | | ||
+ | | ss |The second, from 00 through 59. | | ||
+ | |||
+ | |||
+ | |||
+ | |||
=== See also === | === See also === |
syntax/functions/format.txt · Last modified: 2021/08/30 02:04 by craigt