Name
toString() — NN 2 IE J2 ECMA 1
Synopsis
A static method used mostly by the browser itself to convert
Date
objects to string values when needed for
display in dialog boxes or on-screen rendering. This method is
inherited by Date
object instances, so you may use
it to script string conversion if the other available formats are not
to your liking.
Returned Value
String in a variety of possible formats. Examples of U.S. versions of browsers include:
Platform |
String Value |
---|---|
Navigator 4/Win32 |
Tue Mar 31 11:22:04 Pacific Standard Time 1998 |
Navigator 4/MacPPC |
Tue Mar 31 11:30:24 1998 |
Internet Explorer 4/Win32 |
Tue Mar 31 11:22:04 PST 1998 |
Internet Explorer 4/MacPPC |
Tue Mar 31 11:30:24 PST 1998 |
Parameters
None.
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.