« Bugzilla Issues Index

#268 — Date toString should specify result for "invalid dates"

+++ This bug was initially created as a clone of Bug #267 +++ says the result of Date.prototype.toString is an implementation-defined string. However, all browser implementations appear to return the string "Invalid Date" for Date objects whose time value is NaN.

This result should be specified.

Open issue: Do implementations every localize this string? Is that acceptable or should the literal text "Invalid Date" be required.

fixed in Feb. 2012 draft