function producedate(){
var date=new Date();
var str=date.getFullYear()+"-";
if((date.getMonth()+1)<10){str+="0"+(date.getMonth()+1);}else{str+=
(date.getMonth()+1);};
str+="-";
if(date.getDate()<10){str+="0"+date.getDate();}else{str+=date.getDate();}
return str;
}