Here you can find the source of toFormattedString(t)
Date.prototype.toFormattedString=function(t){ return str=Date.padded2(this.getDate())+" "+Date.months[this.getMonth()]+" "+this.getFullYear(),t&&(str+=" "+this.getHours()+":"+this.getPaddedMinutes()),str};
Date.prototype.toFormattedString = function(include_time){ str = Date.padded2(this.getMonth() + 1) + '/' +Date.padded2(this.getDate()) + '/' + this.getFullYear(); if (include_time) { hour=this.getHours(); str += " " + this.getAMPMHour() + ":" + this.getPaddedMinutes() + " " + this.getAMPM() } return str; Date.parseFormattedString = function (string) { var regexp = "(([0-1]?[0-9])\/[0-3]?[0-9]\/[0-9]{4}) *([0-9]{1,2}(:[0-9]{2})? *(am|pm))?"; string = string.strip(); var d = string.match(new RegExp(regexp, "i")); ...
Date.prototype.toFormattedString = function(include_time) { var hour; var str = this.getFullYear() + "-" + Date.padded2(this.getMonth() + 1) + "-" +Date.padded2(this.getDate()); if (include_time) { hour = Date.padded2(this.getHours()); str += " " + hour + ":" + this.getPaddedMinutes(); return str; }; ...
Date.prototype.toFormattedString = function(include_time) { var hour; var str = this.getFullYear() + "-" + Date.padded2(this.getMonth() + 1) + "-" +Date.padded2(this.getDate()); if (include_time) { hour = this.getHours(); str += " " + this.getHours() + ":" + this.getPaddedMinutes(); return str; }; ...
Date.prototype.toFormattedString = function(include_time){ str = this.getFullYear() + "-" + Date.padded2(this.getMonth() + 1) + "-" +Date.padded2(this.getDate()); if (include_time) { hour=this.getHours(); str += " " + this.getAMPMHour() + ":" + this.getPaddedMinutes() + " " + this.getAMPM() } return str; Date.parseFormattedString = function (string) { var regexp = "([0-9]{4})(-([0-9]{2})(-([0-9]{2})" + "( ([0-9]{1,2}):([0-9]{2})? *(pm|am)" + "?)?)?)?"; ...
Date.prototype.toFormattedString = function(include_time){ str = Date.padded2(this.getMonth() + 1) + '/' + Date.padded2(this.getDate()) + '/' + this.getFullYear(); if (include_time) { hour=this.getHours(); str += " " + this.getAMPMHour() + ":" + this.getPaddedMinutes() + " " + this.getAMPM() } return str; Date.parseFormattedString = function (string) { var regexp = "(([0-1]?[0-9])\/[0-3]?[0-9]\/[0-9]{4}) *([0-9]{1,2}(:[0-9]{2})? *(am|pm))?"; var d = string.match(new RegExp(regexp, "i")); if (d==null) { ...