[This is preliminary documentation and subject to change]
You attempted to invoke the Date.prototype.toString or Date.prototype.valueOf method on an object of a type other than Date. The object of this type of invocation must be of type Date. For example:
var o = new Object;
o.f = Date.prototype.toString;
o.f();
To correct this error