Date.Parse Method

Definition

Overloads

Parse(String)

Converts a specified string representation of a date to Date with CurrentCulture format.

Parse(String, IFormatProvider)

Converts a specified string representation of a date to Date.

Parse(String)

Converts a specified string representation of a date to Date with CurrentCulture format.

public static Microsoft.OData.Edm.Date Parse (string text);
static member Parse : string -> Microsoft.OData.Edm.Date
Public Shared Function Parse (text As String) As Date

Parameters

text
String

A string that represent a date to convert.

Returns

The Date instance represented by text

Applies to

Parse(String, IFormatProvider)

Converts a specified string representation of a date to Date.

public static Microsoft.OData.Edm.Date Parse (string text, IFormatProvider provider);
static member Parse : string * IFormatProvider -> Microsoft.OData.Edm.Date
Public Shared Function Parse (text As String, provider As IFormatProvider) As Date

Parameters

text
String

A string that represent a date to convert.

provider
IFormatProvider

An object that supplies culture-specific formatting information about text.

Returns

The Date instance represented by text

Applies to