Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015年7月.
toISOString() は Date インスタンスのメソッドで、この日時を日時文字列形式で表す文字列を返します。この形式は、ISO 8601 に基づく簡略化された形式で、常に 24 または 27 文字の長さです(YYYY-MM-DDTHH:mm:ss.sssZ または ±YYYYYY-MM-DDTHH:mm:ss.sssZ)。タイムゾーンは常に 0 UTC オフセットになり、接尾辞 Z で表記されます。
なし。
協定世界時に基づき、指定された日付を日時文字列形式で表す文字列。 Date.parse() で認識するために求められる形式と同じ形式です。
日付が無効であるか、日時文字列形式で表せない年に相当する場合に発生します。
| ECMAScript® 2027 Language Specification # sec-date.prototype.toisostring |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025年6月19日 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.