← dayofmonth operator page · time/dayofmonth/sc/mid_month_date
pandas ✅ · DuckDB ✅
dayofmonth(SC_1) on a scalar date, SC_1 = 2020-12-14, the date of the page's valid syntax dayofyear (2020-12-14).
Extract time period: "The operator dayofmonth returns the ordinal day within the month (between 1 and 31)."
DS_r = 14, an Integer: the 14th of December.
DS_r := dayofmonth(SC_1);
| SC_1 |
|---|
| 2020-12-14 |
{
"scalars": [
{"name": "SC_1", "type": "Date"}
]
}
{
"scalars": [
{"name": "DS_r", "type": "Integer", "value": 14}
]
}