hi,

i have three vars, year,month and date.

i want it in format year-month-date.

ie, for ex, 2007-6-6.

i tried it this way but it subtracted and give the value as 1995.

Code:
var str=year+'-'+month+'-'+date;
how to do it. Thanks.