Date.prototype.toYYYYMMDDHHMMSS = function() {
	var mouth=this.getMonth() + 1<10?'0'+(this.getMonth() + 1):(this.getMonth() + 1);
	var day=this.getDate()<10?'0'+this.getDate():this.getDate();
	
    return this.getFullYear() + "/" + mouth + "/" + day + " " + this.getHours() + ":" + this.getMinutes() + ":" + this.getSeconds() ;
};

Date.prototype.toYYYYMMDD = function() {
	var mouth=this.getMonth() + 1<10?'0'+(this.getMonth() + 1):(this.getMonth() + 1);
	var day=this.getDate()<10?'0'+this.getDate():this.getDate();
	
    return this.getFullYear() + "-" + mouth + "-" + day;
};