From http://www.w3schools.com (Copyright Refsnes Data)
JavaScript Date Object
The toString() method converts a Date object to a string.
| dateObject.toString() |
ExampleConvert today's date into a string:
The output of the code above will be: Try it yourself » |
JavaScript Date Object
From http://www.w3schools.com (Copyright Refsnes Data)