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)
.
Any ideas?
I don't understand, the response is in your question :
select strftime('%m', dateField) as Month ...
SELECT strftime('%m', datefield) FROM table
If you are searching the month name, text month names does not seems to be supported by the core distribution of SQLite
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With