Filters on dates / timestamps with SQLite #1430
Unanswered
oreoluwa-bs
asked this question in
Q&A
Replies: 1 comment 1 reply
-
You are using an integer to hold your datetime. You can do the following: between(table.createdAt, (new Date(`1-${month}-${year})).valueOf(), new Date().valueOf()) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using sqlite (Better-sqlite).
How do you perform filters on dates. Non of the below options work
Im trying to get rows that where created within a particular month of the year
And this is the schema
Beta Was this translation helpful? Give feedback.
All reactions