← dayofmonth operator page · time/dayofmonth/sc/mid_month_date

Mid month date 🟢 all ok

pandas ✅ · DuckDB ✅

Tests:

dayofmonth(SC_1) on a scalar date, SC_1 = 2020-12-14, the date of the page's valid syntax dayofyear (2020-12-14).

Manual:

Extract time period: "The operator dayofmonth returns the ordinal day within the month (between 1 and 31)."

Expected:

DS_r = 14, an Integer: the 14th of December.

script.vtl ⇩

DS_r := dayofmonth(SC_1);

input/scalars.csv ⇩

SC_1
2020-12-14

input/scalars.json ⇩

{
  "scalars": [
    {"name": "SC_1", "type": "Date"}
  ]
}

expected/scalars.json ⇩

{
  "scalars": [
    {"name": "DS_r", "type": "Integer", "value": 14}
  ]
}