Reputation: 5
I wanted to select data which has an overdue dates. For example, Deadline is 9-9-2016 and the date today is 10-10-2016. Clearly 9-9-2016 is already overdue. Thanks.
Upvotes: 0
Views: 3788
Reputation: 2596
Have a look at the date and time functions in MySql. Depending on the type of your column, you may want to use something like CURRENT_DATE()
or CURRENT_TIME()
:
select * from mytable where mydate < CURRENT_DATE()
Upvotes: 1