Get to know MDN better
This page was translated from English by the community. Learn more and join the MDN Web Docs community.
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015년 7월.
toJSON() 메서드는 Date 객체의 문자열 표현을 반환합니다.
주어진 날짜의 문자열 표현.
Date 인스턴스는 시간의 특정 지점을 가리킵니다. toJSON()을 호출하면 toISOString() 사용해 그 인스턴스가 가리키는 시간의 문자열 표현을 반환합니다. toJSON()은 Date 값을 JSON으로 직렬화할 때 유용하게 사용할 수 있도록 만들어졌습니다.
| ECMAScript® 2027 Language Specification # sec-date.prototype.tojson |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025년 2월 11일 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.