English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

JavaScript toDateString() Method

 JavaScript Date Object

toDateString()In a human-readable (human-Returns the string representing the date part of the date object in the form of human-readable (readable)

Syntax:

date.toDateString()
var d = new Date();
var str = d.toDateString();
document.getElementById('#39;result').innerHTML = str;
Test See‹/›

Browser Compatibility

All browsers fully support the toDateString() method:

Method
toDateString()YesYesYesYesYes

Technical Details

Return Value:

A string representing the date part of the given date object in a human-readable form

JavaScript Version:ECMAScript 1

 JavaScript Date Object