I have a date being passed to my script in the format as yyyy-mm-dd.
I’m trying to grab all journal entries that fall within the month and year provided.
Should I just do this, where yyyy-mm is the date provided?
SELECT * FROM table WHERE ts_date > yyyy-mm-01 AND ts_date < yyyy-mm-31
Seems like there might be a more efficient way of handling this.
I think you are looking for this: