I currently have dates stored in my database (in string format) currently as mm/dd/yyyy.
I need to replace all entries as yyyy/mm/dd for sorting purposes.
To clarify, I am a PHP developer but my raw MySql isnt as strong. I was thinking of doing this by using substrings to re-arrange the date. (I tried in PHP first but it take way too long to process this much data, about a half million rows).
Am i going about this correctly? if so, how do I "loop through" the data, assigning my substr variables for the current iteration?
Note: I did try str_to_date here and it ended up nullifying half of the fields. Im not entirely sure why.
Your help is greatly appreciated.