I want to get entries from a SQLite database by date.
SQLite valid timestring formats are listed here as:
YYYY-MM-DD
YYYY-MM-DD HH:MM
YYYY-MM-DD HH:MM:SS
YYYY-MM-DD HH:MM:SS.SSS
YYYY-MM-DDTHH:MM
YYYY-MM-DDTHH:MM:SS
YYYY-MM-DDTHH:MM:SS.SSS
HH:MM
HH:MM:SS
HH:MM:SS.SSS
now
DDDD.DDDD
I have another format in the database that is D/M/YYYY
Is there a way to compare dates in this database (and select entries accordingly) without having to select, parse and compare all the DateTime objects from all rows in the table?
I made a really FAST query and I am proud of it :p. So here it is:
And it is being used as: