Get to know MDN better
This page was translated from English by the community. Learn more and join the MDN Web Docs community.
Строка, ведущая к недопустимой дате, была выведена Date или Date.parse().
Неопознанные строки или даты, содержащие недопустимые значения элементов в строках, отформатированных ISO, обычно возвращают NaN. Тем не менее, в зависимости от реализации, при несоответствии строкам формата ISO, может также возникнуть ошибка RangeError: invalid date, например в следующих случаях, в Firefox.
Это, без сомнения, вернёт NaN в Firefox:
Для получения более подробной информации, смотрите документацию по Date.parse()
This page was last modified on 7 авг. 2023 г. by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.