Dates are stored in the database as such: "2011-05-26 11:00:00" in the datetime field. I would like to find all rows where the date is greater than the first of this month, that is: 2011-05-01 09:00:00
The date formats in the database cannot be changed. What MySQL function can I use to convert the date in the database to a format that the comparison can handle? I guess the best format for the "first month" is a unix timestamp?
Time values ββare always present in the dates, but only hours of operation, therefore from 09:00 to 17:00.
stef source share