Date.prototype.Format = function(fmt) { //author: meizz var o = { "M+" : this.getMonth() + 1, //month "d+" : this.getDate(), //day "h+" : this.getHours(), //hours "m+" : this.getMinutes(), //munutes "s+" : this.getSeconds(), //seconds "q+" Read More