var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: Formatting the date on insert
I have learned how to format the date coming out of a database, but if I have a user enter the date in the format 08/04/2004, how can I change that to 2004-08-04?
Try the following
Let me know whether this solved ur problem
actually, I have decided to just use a calendar to let the user select a date and it inputs it into the form. It was just more convenient than formatting dates going in and out, on every query.
Sudar, I just tried what you have above on mysql 5.x
It gives a date sometime in 1969.
You r correct guhelpdad, thnks for pointing it out to me
Unix_timestamp accepts date in yyyy-mm-dd format only..
so only the following will work