How to change todays date format to YYYY-MM-DD

var d= new Date(); var m=((d.getMonth()+1)<10)?'0'+(d.getMonth()+1):(d.getMonth()+1); return d.getFullYear()+"-"+m+"-"+d.getDate();

will get you the format YYYY-MM-DD

Reference: executeScript, execute script, Arrays - Selenium IDE Commands Tutorial