I\'ve created this script to calculate the date for 10 days in advance in the format of dd/mm/yyyy:
var MyDate = new Date(); var MyDateString = new Date(); M
try this for a basic function, no libraries required
Date.prototype.CustomformatDate = function() { var tmp = new Date(this.valueOf()); var mm = tmp.getMonth() + 1; if (mm < 10) mm = "0" + mm; var dd = tmp.getDate(); if (dd < 10) dd = "0" + dd; return mm + "/" + dd + "/" + tmp.getFullYear(); };