contents   index   previous   next



Date toTimeString()

syntax:

date.toTimeString()

return:

string - representation of the Time portion of the current object.

 

description:

This function returns the time portion of the current date as a string. This string is formatted to read "Hours:Minutes:Seconds", as in "16:43:23". This function uses the local time, rather than the UTC time.

 

see:

Date toString(), Date toDateString(), Date toLocaleDateString()

 

example:

var d = new Date();

var s = d.toTimeString();

 


Date toUTCString()