How can I do a select from a db field that uses a timestamp when all I have from php is a date?
$date = 2012-10-03;
something like:
"select value from table where completed_date = $date"
only the value for completed_date is really something like “2012-10-03 02:16:10” what I really would like is all values that are the same day as $date and for the query to almost disregard the time aspect of the timestamp for this query. Is that possible?
Thanks!
Given that your provided date is already a valid mysql datestamp, it can be as simple as: