Home / Programming / php / How to match a mysql datetime field for a specific day
How to match a mysql datetime field for a specific day
Last updated: 02/07/2012
Sometimes you need a mysql statement to match a datetime field for an entire day. For instance, if you have an event that has a single start_date field which is datetime, and you want to grab all events for the entire day.
If your event has start_date field that is type datetime, you can grab all of today's events like so (php
code: