问题
I have a sqlite table within a column type DATE. Why doesn't this query work? I save my date in this format: dd-MM-YYYY
SELECT * FROM scadenze where data < strftime ('%d-%m-%Y', '31-03-2017') ;
回答1:
This is not one of the supported date formats. Better use yyyy-mm-dd.
来源:https://stackoverflow.com/questions/39127128/what-date-format-use-in-sqlite