Datepicker Output back to mySQL format?

Datepicker Output back to mySQL format?

Hi, probably a fairly simple answer to this as i'm certain lots of people have run into it, yet i can't find a solution by searching....

I have a mysql database. the default date format it uses is yyyy-mm-dd. My client is in England, and they are used to having mm-dd-yy. I have used the dateFormat property to successfully display the date the way i want when it's selected, and i've used strtotime in php to re-convert it back to the correct format when saving to the mysql database. One small problem though : when i click the submit button to update the database form, it all works, but when the page refreshes the textbox shows the date in the default yyy-mm-dd format again. it only returns to the display format i want once i click on the datepicker and select the date again

So, without knowing the exact code, i reckon what i need to do is have some sort of script that on page load reformats the textboxes to the mm-dd-yy format. Would you guys recommend it be done in a javascript onLoad()? if so, how?