|
So it doesn't matter what format the date has in $date? It could be m/d/yy, or, mm/d/yyyy, mm/dd/yy, etc.? Then after converting $date to a timestamp, I can use DATE() to put it into the yyyy-mm-dd format? Thanks. I'll give it a try. I am using my query to convert all the dates in the date column of my database to yyyy-mm-dd. How would I include your code into a query? Looks like I might have to loop through the database or could this be done without looping?
|