Skip to content

Commit 0ab16f6

Browse files
Merge pull request #115170 from ecfan/patch-4
Add startOfMonth example using specified format
2 parents ca75e9c + e243112 commit 0ab16f6

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

articles/logic-apps/workflow-definition-language-functions-reference.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3855,7 +3855,7 @@ startOfMonth('<timestamp>', '<format>'?)
38553855
| <*updated-timestamp*> | String | The specified timestamp but starting on the first day of the month at the zero-hour mark |
38563856
||||
38573857

3858-
*Example*
3858+
*Example 1*
38593859

38603860
This example returns the start of the month for this timestamp:
38613861

@@ -3865,6 +3865,16 @@ startOfMonth('2018-03-15T13:30:30Z')
38653865

38663866
And returns this result: `"2018-03-01T00:00:00.0000000Z"`
38673867

3868+
*Example 2*
3869+
3870+
This example returns the start of the month in the specified format for this timestamp:
3871+
3872+
```
3873+
startOfMonth('2018-03-15T13:30:30Z', 'yyyy-MM-dd')
3874+
```
3875+
3876+
And returns this result: `"2018-03-01"`
3877+
38683878
<a name="startswith"></a>
38693879

38703880
### startsWith

0 commit comments

Comments
 (0)