I am working with a SQLite database that includes a column with dates in the format "YYYY-MM-DD". I am trying to extract the year and month from each date using the strftime function, but for these rows "2021-02-14 6:37:00", "2021-02-19 3:35:00" the function returns NULL.
I tried to check if SELECT from this column shows all rows. And it shows all dates correctly. I would like to know why NULL appears
SQLite documentation:
ISO 8601 format - wiki:
dbfiddle demo for values with and without leading zeros.