English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
toDateString()In a human-readable (human-Returns the string representing the date part of the date object in the form of human-readable (readable)
date.toDateString()
var d = new Date(); var str = d.toDateString(); document.getElementById('#39;result').innerHTML = str;Test See‹/›
All browsers fully support the toDateString() method:
Method | |||||
toDateString() | Yes | Yes | Yes | Yes | Yes |
Return Value: | A string representing the date part of the given date object in a human-readable form |
---|---|
JavaScript Version: | ECMAScript 1 |