PCHomepage
Programmer
I am good at relational databases and SQL but haven't been able to figure out this one! I can do it in PHP but, as it's a one-time thing, it would be better to just run the query once and get it over with.
In the VARCHAR field is oddly formatted date-time data as: Jul 11 08:41:22. The month is always shown in 3-character format and the year is all 2008. Any idea how to strip the time completely and format the date as 2008-7-11?
Much simpler but for another VARCHAR column with the same data I want to leave only the time while stripping out the date.
In the VARCHAR field is oddly formatted date-time data as: Jul 11 08:41:22. The month is always shown in 3-character format and the year is all 2008. Any idea how to strip the time completely and format the date as 2008-7-11?
Much simpler but for another VARCHAR column with the same data I want to leave only the time while stripping out the date.