Type Todays Date into Field

Selenium.prototype.doTypeTodaysDate = function(locator){
var dates = new Date();
var day = dates.getDate();
if (day < 10){
day = '0' + day;
}
month = dates.getMonth() + 1;
if (month < 10){
month = '0' + month;
}
var year = dates.getFullYear();
var prettyDay = day + '/' + month + '/' + year;
this.doType(locator, prettyDay);
}

Above code will enter current date in dd/mm/yyyy format in specified Locator(Passeed as argument)

Note: - After adding above User-Extensions.js with selenium IDE , you can see additional command “TypeTodaysDate” in selenium ide command list.

steps to call this function from ide
1. write command "TypeTodaysDate" in selenium IDE
2. Enter Locator in Target ( Locator of webedit , where you want to enter current date)
3. Run selenium IDE

Type: 

User-Extension