DateUtils.ParseDate Method

Definition

Overloads

Name Description
ParseDate(String)

Parses an HTTP date using the supplied or default cookie date patterns.

ParseDate(String, String[])

Parses an HTTP date using the supplied or default cookie date patterns.

ParseDate(String, String[], Date)

Parses an HTTP date using the supplied or default cookie date patterns.

Parses an HTTP date using the supplied or default cookie date patterns.

[Android.Runtime.Register("parseDate", "(Ljava/lang/String;)Ljava/util/Date;", "")]
public static Java.Util.Date? ParseDate(string? dateValue);
[<Android.Runtime.Register("parseDate", "(Ljava/lang/String;)Ljava/util/Date;", "")>]
static member ParseDate : string -> Java.Util.Date

Parameters

dateValue
String

The textual date value to parse.

Returns

The parsed date.

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Parses an HTTP date using the supplied or default cookie date patterns.

[Android.Runtime.Register("parseDate", "(Ljava/lang/String;[Ljava/lang/String;)Ljava/util/Date;", "")]
public static Java.Util.Date? ParseDate(string? dateValue, string[]? dateFormats);
[<Android.Runtime.Register("parseDate", "(Ljava/lang/String;[Ljava/lang/String;)Ljava/util/Date;", "")>]
static member ParseDate : string * string[] -> Java.Util.Date

Parameters

dateValue
String

The textual date value to parse.

dateFormats
String[]

The date patterns to try while parsing cookie dates.

Returns

The parsed date.

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Parses an HTTP date using the supplied or default cookie date patterns.

[Android.Runtime.Register("parseDate", "(Ljava/lang/String;[Ljava/lang/String;Ljava/util/Date;)Ljava/util/Date;", "")]
public static Java.Util.Date? ParseDate(string? dateValue, string[]? dateFormats, Java.Util.Date? startDate);
[<Android.Runtime.Register("parseDate", "(Ljava/lang/String;[Ljava/lang/String;Ljava/util/Date;)Ljava/util/Date;", "")>]
static member ParseDate : string * string[] * Java.Util.Date -> Java.Util.Date

Parameters

dateValue
String

The textual date value to parse.

dateFormats
String[]

The date patterns to try while parsing cookie dates.

startDate
Date

The inclusive start of the 100-year range used to interpret two-digit years; when null, the year 2000 is used.

Returns

The parsed date.

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to