I have an variable which holds a date in UK format, ie 250711 which means the 25th July 2011
When I insert that into MYSQL it becomes 2025-07-11
How can I convert it before writing into MySQL such that is displayed correctly in MySQL as 2011-07-25?
Thanks alot,
Greg
If you want to use the string for an insert/update/select statement anyway you can let MySQL do the work
see http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#function_str-to-date