Link Search Menu Expand Document

Date.Parse Method

Explanation Parses the date string.This method is a static method. It can be called without creating an object.
Call format var v = Date.Parse (value)
Return value Returns the elapsed time in milliseconds since the UTC reference time , which represents the date and time parsed.
Arguments String value Specifies a string that indicates the date and time.
The formats that can be parsed are as follows.
"YY / MM / DD"
"YY / MM / DD HH24: MI"
"YY / MM / DD HH24: MI: SS"
"YYYY / MM / DD"
"YYYY / MM / DD HH24: MI"
"YYYY / MM / DD HH24: MI: SS"
"dy, DD mon YYYY HH24: MI: SS TZ"
Exception None
Example of use
var d = new Date ();
d.SetTime (Date.Parse ("2002/2/28 20:00:00"));
print (d, "¥ n");
Related item