Hello, I have entered some dates in my database.
When I use sqlite3 in YYY-MM-DD format in another table, when I make my query, for example
SELECT * FROM SDay WHERE strftime('%Y-%m-%d', date)>=strftime('%Y-%m-%d','2013-02-21') AND strftime('%Y-%m-%d', date)<strftime('%Y-%m-%d','2013-09-15')
It works great.
On the other hand, when I use the YYY-MM format in another table, then
SELECT * FROM SMonth WHERE strftime('%Y-%m', date)>=strftime('%Y-%m','2013-02') AND strftime('%Y-%m', date)<strftime('%Y-%m','2013-09')
will not work. Why is this happening and how can I fix it?
Thanks.
source share