kingmx has asked for the wisdom of the Perl Monks concerning the following question:
Has anyone know how to search database by date range?
I'm using Perl Catalyst framework and I want to produce a query like this.
SELECT * FROM table WHERE date BETWEEN 2013-05-03 AND 2013-05-04;
Here's my code and I'm stuck on thinking how to write the "where" clause.
my $rs = [$c->model('DB::table')->search( { 'me.date' => ???? } ,{} )];
Thanks. :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to search database by date range
by tobyink (Canon) on May 09, 2013 at 15:53 UTC | |
by kingmx (Initiate) on May 11, 2013 at 06:23 UTC | |
|
Re: How to search database by date range
by ww (Archbishop) on May 09, 2013 at 11:15 UTC | |
|
Re: How to search database by date range
by thundergnat (Deacon) on May 09, 2013 at 15:42 UTC | |
|
Re: How to search database by date range
by Anonymous Monk on May 09, 2013 at 11:02 UTC |