parse (JavaScript)
Creates a Date object representing a specified time.
Defined in
Date (Standard - JavaScript)Syntax
parse(str:string)
: Date
Parameters | Description |
---|---|
str |
String representing the date in the format generated by toString (Date - JavaScript). |
Return value | Description |
---|---|
Date |
The new date. |
Examples
This computed label creates and displays a new date.var date = new Date().parse("1/1/70 6:02 PM");
date.toString()