in reply to Re: Querying Date Ranges with DBIx::Class
in thread Querying Date Ranges with DBIx::Class

Thanks for your feed back.

Regarding the first example, I made the correction and I still got the same error. With the second example, I typed the code into the textarea of this form, rather than copying and pasting. So, in my actual code I do have the hyphen prefixed to between.

Just another thought, $date1 and $date2 are form values. Should I be converting those values into DateTime objects, then passing it in to the query (in the first example)?

  • Comment on Re^2: Querying Date Ranges with DBIx::Class