Here you can find the source of toDateInputValue(()
//set the date input as current day, set starttime as right now, set endtime as hour from now Date.prototype.toDateInputValue = (function() { var local = new Date(this); local.setMinutes(this.getMinutes() - this.getTimezoneOffset()); return local.toJSON().slice(0,10); });/*from ww w. j a v a2 s.c o m*/
Date.prototype.toDateInputValue = (function() { var local = new Date(this); local.setMinutes(this.getMinutes() - this.getTimezoneOffset()) return local.toJSON().slice(0,10);
Date.prototype.toDateInputValue = (function() { var local = new Date(this); local.setMinutes(this.getMinutes() - this.getTimezoneOffset()); return local.toISOString().substr(0,10); });
Date.prototype.toDateInputValue = (function() { var local = new Date(this); local.setMinutes(this.getMinutes() - this.getTimezoneOffset()); return local.toJSON().slice(0,10); });
Date.prototype.toDateInputValue = (function() { var local = new Date(this); local.setMinutes(this.getMinutes() - this.getTimezoneOffset()); return local.toISOString().substr(0,10); });
Date.prototype.toDateInputValue = (function() { var local = new Date(this); local.setMinutes(this.getMinutes() - this.getTimezoneOffset()); return local.toJSON().slice(0,10); });
Date.prototype.toDateInputValue = (function() { var local = new Date(this); local.setMinutes(this.getMinutes() - this.getTimezoneOffset()); return local.toJSON().slice(0, 10); });
Date.prototype.toDateInputValue = (function() { var local = new Date(); return local.toJSON().slice(0,10); });
'use strict'; Date.prototype.toDateInputValue = function() { var local = new Date(this); local.setMinutes(this.getMinutes() - this.getTimezoneOffset()); return local.toJSON().slice(0,10); };
Date.toDateOrDefault = function(input, defaultDate){ return (typeof input == "string") ? Date.fromJSON(input) : input || defaultDate || new Date(); };