var today = new Date();
Date.prototype.toShort = function () { function f(n) { return n < 10 ? "0" + n : n; } return f(this.getDate() ) + "/" + f(this.getMonth() + 1) + "/" + this.getFullYear() ; }; alert((new Date).toShort());//==="25/07/2009"
Comment