Wait a sec:
First: Which Format for your dates are you using in the SQLite-DB? I hope it's ISO-Format "YYYY-MM-DD"
Next: Have you checked that DateToStr returns the SAME Format?
I really, really hope you use ISO-Format
.....and there is no vchar DataType in SQLite.
It's TEXT.
Period
I'm more surprised this compiles.....
to avoid facing a problem with date encoding especially when I copy my program from one computer to another. Which naturally varies the date encoding, especially in the order of the day and the year Therefore, I use the following solution/trick:
In the database: the field type is set as text/varchar,
but in the program, I manually add a field to the dataset and assign it as a date type. Then, I link it to the relevant field, so the program handles it as a DateTime type
So I don't I have to worry about date time Format issues .