DateFormat.ParseObject(String, ParsePosition) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Parses a date/time string into an Object.
[Android.Runtime.Register("parseObject", "(Ljava/lang/String;Ljava/text/ParsePosition;)Ljava/lang/Object;", "GetParseObject_Ljava_lang_String_Ljava_text_ParsePosition_Handler", ApiSince=24)]
public override Java.Lang.Object? ParseObject(string? source, Java.Text.ParsePosition? pos);
[<Android.Runtime.Register("parseObject", "(Ljava/lang/String;Ljava/text/ParsePosition;)Ljava/lang/Object;", "GetParseObject_Ljava_lang_String_Ljava_text_ParsePosition_Handler", ApiSince=24)>]
override this.ParseObject : string * Java.Text.ParsePosition -> Java.Lang.Object
Parameters
- source
- String
A String, part of which should be parsed.
- pos
- ParsePosition
A ParsePosition object with index and error index information as described above.
Returns
An Object parsed from the string. In case of error, returns null.
- Attributes
Remarks
Parses a date/time string into an Object. This convenience method simply calls parse(String, ParsePosition).
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.