I have a table that contains two dates: start_date and end_date. Both of these columns are string. When I try to query to get the records comparing against these dates, Laravel treats them as strings, instead of dates.
For example, for this query:
Schedule::whereDate('start_date','<=',date('m/d/Y'))->whereDate('end_date','>=',date('m/d/Y'))->get();
No results are returned, which is not correct.
Any thoughts? Or any other way to compare dates that are strings?
Thanks.