Skip to content

Commit cc0fbd5

Browse files
authored
Update formatting-syntax-reference.md
1 parent 7c06467 commit cc0fbd5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/declarative-customization/formatting-syntax-reference.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,8 @@ Operators specify the type of operation to perform. The following operators are
580580
- `"txtContent": "=cos(5)"` results in _0.28366218546322625_
581581
- **sin**: returns the sine of a number
582582
- `"txtContent": "=sin(90)"` results in _0.8939966636005579_
583+
- **toDateString()**: returns a date in a short-friendly format
584+
- `"txtContent": "=toDateString(@now)"` result doesn't vary based on user's locale and it will look like _"Wed Aug 03 2022"_
583585
- **toLocaleString()**: returns a language sensitive representation of a date
584586
- `"txtContent":"=toLocaleString(@now)"` results vary based on user's locale, but en-us looks like _"2/5/2019, 1:22:24 PM"_
585587
- **toLocaleDateString()**: returns a language sensitive representation of just the date portion of a date

0 commit comments

Comments
 (0)