Select between dates with wildcard mysql
Posted
by Michael
on Stack Overflow
See other posts from Stack Overflow
or by Michael
Published on 2010-04-06T00:44:37Z
Indexed on
2010/04/06
0:53 UTC
Read the original article
Hit count: 347
Hi,
I am trying to select between two dates, but in the table they have timestamps after them.
Example: calldate is 2010-03-16 22:43:28
How would I select this using calldate between '$date1' AND '$date2' to wildcard the timestamp after the date?
I tried using like but it didn't work
I just want to do between '$date1%' AND '$date2%'
Anyone know how to do this?
Thank you in advance!
© Stack Overflow or respective owner