[Solved] Get current week data in sqlite3?
[ad_1] Your problem is that you are formatting your dates in %d-%m-%Y format, which will not work in a BETWEEN expression because it uses string comparison; for example the date 10-01-2999 would be between 09-01-2022 and 11-01-2022. You need to format them as %Y-%m-%d for BETWEEN to work correctly. If the dates in your table … Read more