Date.toString()
Converts a Date object to a string
var event = new Date('August 19, 1975 23:15:30');
console.log(event.toString());
// expected output: Tue Aug 19 1975 23:15:30 GMT+0200 (CEST)
// (note: your timezone may vary)
Syntax
dateObj.toString()Description
Examples
Using toString()
toString()References
Contributors to this page
Last updated