how can I select data from MySQL based on date (unix time record)
Posted
by bn
on Stack Overflow
See other posts from Stack Overflow
or by bn
Published on 2010-05-17T23:54:46Z
Indexed on
2010/05/18
0:00 UTC
Read the original article
Hit count: 229
I have a record of data with unix time date in it
i want to select the row based on the date/month/year only (not with time)
currently Im using something like this
select *
from tablename
where date > '$today'
and date < '$tomorow'
LIMIT 1;
how ever this is not that accurate if the $today and $tomorrow have different time (but same date)
is there any better way to do this?
© Stack Overflow or respective owner