DateFormat.Parse DateFormat.Parse Method

Definition

Overloads

Parse(String, ParsePosition) Parse(String, ParsePosition)

Parses a date from the specified string starting at the index specified by position.

Parse(String) Parse(String)

Parses a date from the specified string using the rules of this date format.

Parse(String, ParsePosition) Parse(String, ParsePosition)

Parses a date from the specified string starting at the index specified by position.

[Android.Runtime.Register("parse", "(Ljava/lang/String;Ljava/text/ParsePosition;)Ljava/util/Date;", "GetParse_Ljava_lang_String_Ljava_text_ParsePosition_Handler")]
public abstract Java.Util.Date Parse (string source, Java.Text.ParsePosition pos);
abstract member Parse : string * Java.Text.ParsePosition -> Java.Util.Date

Parameters

source
String String

Returns

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.

Parse(String) Parse(String)

Parses a date from the specified string using the rules of this date format.

[Android.Runtime.Register("parse", "(Ljava/lang/String;)Ljava/util/Date;", "GetParse_Ljava_lang_String_Handler")]
public virtual Java.Util.Date Parse (string source);
abstract member Parse : string -> Java.Util.Date
override this.Parse : string -> Java.Util.Date

Parameters

source
String String

Returns

Exceptions

if an error occurs during parsing.

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