Possible Duplicate:
how to format javascript date
I have the following bit of code
$('#ins_date').attr('value', Date());
What i get is this : Wed Mar 21 2012 17:52:32 GMT+0100 (Romance Standard Time)
How could i format this string to get somethingh like this : 2012-03-01