Function DisplayNiceDate
Outputs a date using a nice format
DisplayNiceDate([DATE],[STYLE],[SPAN],[ADD_TAGS])
Parameters
# | Type | Passing | Default | Name | Description/Comments | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | datetime | required | n/a | DATE | The date to output | ||||||||||||
2 | integer | optional | 0 | STYLE | The style where:
|
||||||||||||
3 | string | optional | n/a | SPAN | Additional span information surrounding the suffix | ||||||||||||
4 | integer | optional | 0 | ADD_TAGS | Whether to add a tag around the suffix: 0 = no, 1 = yes |
Returns
The display date
Examples
Example of displaying date
{{DisplayNiceDate(ALIAS.SDTIME,1,"class='myclass'",0)}}
Example of displaying date with day superscript day e.g. 2nd January 2022
{{DisplayNiceDate(ALIAS.SDTIME,1,"",1)}}