Documentation for: ASP.NET Ajax Version 1.0

This documentation is for a previous version. For the current released version, see the ASP.NET Ajax documentation on MSDN.

 

 

 

 

 

 

 

Date.parseInvariant Function

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.

Syntax

var a = Date.parseInvariant(value, formats);

Arguments

value

A string that represents a date.

formats

(Optional) An array of custom formats.

Return Value

If value is a valid string representation of a date in the invariant format, an object of type Date; otherwise, null.

Exceptions

Exception Type Condition

ArgumentException

(Debug) formats contains an invalid format.

Remarks

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.