Here you can find the source of getLocalDateObject()
Date.prototype.getLocalDateObject = function () { return new Date(this.toLocaleString()) }
Date.prototype.getFromFormat = function(format) { var yyyy = this.getFullYear().toString(); format = format.replace(/yyyy/g, yyyy) var mm = (this.getMonth()+1).toString(); format = format.replace(/mm/g, (mm[1]?mm:"0"+mm[0])); var dd = this.getDate().toString(); format = format.replace(/dd/g, (dd[1]?dd:"0"+dd[0])); var hh = this.getHours().toString(); format = format.replace(/hh/g, (hh[1]?hh:"0"+hh[0])); ...
Date.prototype.getFullDate = function(){ if (this.getDate() < 10) { return '0' + this.getDate(); return this.getDate(); };
Date.prototype.getFullDate = function(separator) { separator = separator ? separator : '-'; return this.getFullYear()+separator+this.getMonthFormatted()+separator+this.getDayFormatted(); };
Date.prototype.getGMTOffset = function () { return (this.getTimezoneOffset() > 0 ? "-" : "+") + String.leftPad(Math.floor(this.getTimezoneOffset() / 60), 2, "0") + String.leftPad(this.getTimezoneOffset() % 60, 2, "0");
Date.prototype.getLastDate = function() { return new Date(this.getFullYear(), this.getMonth() + 1, 0).getDate();
Date.getToday = function() { var now = new Date(); return now.getMidnight(); }; Date.prototype.getMidnight = function() { return new Date( this.getFullYear(), this.getMonth(), this.getDate(), 0, 0, 0); };
Date.prototype.getNextDate = function(i){ return new Date(new Date().setDate(new Date().getDate()+i)); };
Date.prototype.getNumberDate = function() { var month = this.getMonth() + 1; var day = this.getDate(); var year = this.getFullYear(); return month +"/"+ day +"/"+ year;
Date.prototype.getPreviousDate = function(i){ return new Date(new Date().setDate(new Date().getDate()-i)); };