Skip to content

Commit f2c824e

Browse files
authored
Update last-day.md (#2264)
change interval to date_part
1 parent 0df6a97 commit f2c824e

File tree

1 file changed

+3
-3
lines changed
  • docs/en/sql-reference/20-sql-functions/05-datetime-functions

1 file changed

+3
-3
lines changed

docs/en/sql-reference/20-sql-functions/05-datetime-functions/last-day.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ Returns the last day of the specified interval (week, month, quarter, or year) b
1111
## Syntax
1212

1313
```sql
14-
LAST_DAY(<date_expression>, <interval>)
14+
LAST_DAY(<date_expression>, <date_part>)
1515
```
1616

1717
| Parameter | Description |
1818
|---------------------|---------------------------------------------------------------------------------------------------------------|
1919
| `<date_expression>` | A DATE or TIMESTAMP value to calculate the last day of the specified interval. |
20-
| `<interval>` | The interval type for which to find the last day. Accepted values are `week`, `month`, `quarter`, and `year`. |
20+
| `<date_part>` | The date_part for which to find the last day. Accepted values are `week`, `month`, `quarter`, and `year`. |
2121

2222
## Return Type
2323

@@ -35,4 +35,4 @@ SELECT LAST_DAY(to_date('2024-11-13'), month) AS billing_date;
3535
├──────────────┤
3636
2024-11-30
3737
└──────────────┘
38-
```
38+
```

0 commit comments

Comments
 (0)