Reputation: 3
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') ;
Upvotes: 0
Views: 626
Reputation: 180020
This is not one of the supported date formats. Better use yyyy-mm-dd
.
Upvotes: 1