Aller au contenu

Renvoie le premier jour de l’année ISO pour une date ou une date avec heure (horodatage/datetime).

func.to_start_of_iso_year(<expr>)
func.to_start_of_iso_year('2023-11-12 09:38:18.165575')
┌────────────────────────────────────────────────────────────────┐
│ func.to_start_of_iso_year('2023-11-12 09:38:18.165575') │
│ Date │
├────────────────────────────────────────────────────────────────┤
│ 2023-01-02 │
└────────────────────────────────────────────────────────────────┘
TO_START_OF_ISO_YEAR(<expr>)
Arguments Description
<expr> date/horodatage

DATE, renvoie la date au format « YYYY-MM-DD ».

SELECT
to_start_of_iso_year('2023-11-12 09:38:18.165575')
┌────────────────────────────────────────────────────┐
│ to_start_of_iso_year('2023-11-12 09:38:18.165575') │
│ Date │
├────────────────────────────────────────────────────┤
│ 2023-01-02 │
└────────────────────────────────────────────────────┘