![]() |
kujox 4/24/2007 |
I have a datetime field in my database. In the SQL statement i do a SELECT DATE(field) AS `Date` FROM table. On my List page I format this as a Short Date. And on the Search page it's listed as a Date with a "Simple edit box with datepicker". Now say I have a few records dated 2/9/2007. I go to advanced search, click the calendar and search for rows equal to 2/9/2007. This returns 0 results! Why can't I use equals when searching for a Date??
|
![]() |
hax0r author 4/24/2007 |
I don't know if this will help, just try and put the date in mysql format ie:2007-09-02 and see if you get results, the simple search may not swap the date format and do a direct compare in the mysql select statement
|
J
|
Jane 4/25/2007 |
Hi, |