Lines Matching refs:date
44 Date.prototype.toJSON = function (key) {
92 text = JSON.stringify([new Date()], function (key, value) {
93 return this[key] instanceof Date ?
94 'Date(' + this[key] + ')' : value;
96 // text is '["Date(---current time---)"]'
111 // Parse the text. Values that look like ISO date strings will
112 // be converted to Date objects.
120 return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4],
127 myData = JSON.parse('["Date(09/09/2001)"]', function (key, value) {
130 value.slice(0, 5) === 'Date(' &&
132 d = new Date(value.slice(5, -1));
175 if (typeof Date.prototype.toJSON !== 'function') {
177 Date.prototype.toJSON = function (key) {