Skip to content

Commit

Permalink
Update the getDate and getDayOfMonth examples (#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
TristonianJones authored Oct 17, 2024
1 parent 8eb4878 commit ede9ed3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/langdef.md
Original file line number Diff line number Diff line change
Expand Up @@ -1840,8 +1840,8 @@ either using the numeric format or the geographic region.
**Examples:**

```
timestamp("2023-12-25T12:00:00Z").getDate() // 25
timestamp("2023-12-25T12:00:00Z").getDate("America/Los_Angeles") // 24
timestamp("2023-12-25T00:00:00Z").getDate() // 25
timestamp("2023-12-25T00:00:00Z").getDate("America/Los_Angeles") // 24
```

**getDayOfMonth** \- Get the day of the month from a timestamp (zero-based
Expand All @@ -1855,8 +1855,8 @@ indexing).
**Examples:**

```
timestamp("2023-12-25T12:00:00Z").getDayOfMonth() // 24
timestamp("2023-12-25T12:00:00Z").getDayOfMonth("America/Los_Angeles") // 23
timestamp("2023-12-25T00:00:00Z").getDayOfMonth() // 24
timestamp("2023-12-25T00:00:00Z").getDayOfMonth("America/Los_Angeles") // 23
```

**getDayOfWeek** \- Get the day of the week from a timestamp (zero-based, zero
Expand Down

0 comments on commit ede9ed3

Please sign in to comment.