I am trying to get extract the month from a DATETIME field in SQLite. month(dateField) does not work as well as strftime(\'%m\', dateStart)>
DATETIME
month(dateField)
strftime(\'%m\', dateStart)>
This is a solution without all the case when statements. Hopefully it's helpful.
select substr('JanFebMarAprMayJunJulAugSepOctNovDec', 1 + 3*strftime('%m', date('now')), -3)