Eloquent select records form last 30 days

Viewed 9030

I having a list of records that have a date (like 11/5/2013, that's a MDY formt), but the dates are VARCHAR fields.

I want to select all the records that are in the last 30 days, but don't know how to cast them to date format, as I get NULL in dates field.

I'm using Laravel and Eloquent ORM, how can I accomplish this?

1 Answers
Related