Date.toTimeString()
Converts the time portion of a Date object to a string
var event = new Date('August 19, 1975 23:15:30');
console.log(event.toTimeString());
// expected output: 23:15:30 GMT+0200 (CEST)
// (note: your timezone may vary)
Syntax
dateObj.toTimeString()Description
Examples
A basic usage of toTimeString()
toTimeString()References
Contributors to this page
Last updated