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월.
Date 인스턴스의 toDateString() 메서드는 주어진 날짜를 현지 시간대로 해석하고 그 중 날짜 부분만 표시하는 문자열을 반환합니다.
없음.
주어진 날짜의 날짜 부분을 나타내는 문자열입니다(형식에 대해선 설명 참조). 날짜가 유효하지 않은 경우 "Invalid Date"를 반환합니다.
Date 인스턴스는 특정 시점을 참조합니다. toDateString()은 날짜를 현지 시간대로 해석하고 날짜 부분을 영어로 형식에 맞춰 출력합니다. 이 함수는 항상 공백으로 구분된 다음 형식을 사용합니다.
예를 들어 "Thu Jan 01 1970"처럼 말이죠.
| ECMAScript® 2027 Language Specification # sec-date.prototype.todatestring |
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.