I have two columns in a table
- event_date (value - 09/22/2013)
- event_time (value is 7:11 PM)
Now I want to write a query that should return a string that has a time and date in the future or past
I wrote something like this
select * from events e where concat(e.event_date,' ',e.event_time) <= date_format(now(),'%m/%d/%Y %g:%i %a')
But he did not work, this is only one of those things that you never know what is wrong with them.
Thanks in advance!
source share