Skip to content

Commit 3d5739e

Browse files
Merge pull request SharePoint#8348 from Fedes365/main
toDateString() new operator - Microsoft Official Docs update
2 parents 47f41e5 + a22435d commit 3d5739e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Formatting syntax reference
33
description: Formatting syntax reference
4-
ms.date: 06/28/2022
4+
ms.date: 08/03/2022
55
ms.localizationpriority: high
66
---
77

@@ -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)