Creates a date from a string by using the invariant culture. This function is static and can be invoked without creating an instance of the object.
var a = Date.parseInvariant(value, formats);
A string that represents a date.
(Optional) An array of custom formats.
If value is a valid string representation of a date in the invariant format, an object of type Date; otherwise, null.
Exception type
Condition
Sys.ArgumentException
(Debug) formats contains an invalid format.
Use the parseInvariant function to create an object of type Date from a string. The EnableScriptGlobalization()()() property of the ScriptManager control has no effect on this function.