[ Web Proxy ]
URL:
Viewing: https://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Errors/Invalid_date [Back]  [Original]

RangeError: invalid date - JavaScript | MDN

This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

RangeError: invalid date

RangeError: invalid date (Firefox)
RangeError: invalid time value (Chrome)
RangeError: Provided date is not in valid range (Chrome)

In this article

RangeError

?

, , Date Date.parse().

, , ISO, NaN. , , ISO, RangeError: invalid date, , Firefox.

js
new Date("foo-bar 2014");
new Date("2014-25-23").toISOString();
new Date("foo-bar 2014").toString();

, , NaN Firefox:

js
Date.parse("foo-bar 2014"); // NaN

, Date.parse()

js
new Date("05 October 2011 14:48 UTC");


Web Proxy Viewer  |  New URL  |  Original Page