Java.Text.DateFormat.GetDateTimeInstance Method
Returns a DateFormat instance for formatting and parsing of both dates and time values in the manner appropriate for the user's default locale.

Syntax

[Android.Runtime.Register("getDateTimeInstance", "(II)Ljava/text/DateFormat;", "")]
public static DateFormat GetDateTimeInstance (int dateStyle, int timeStyle)

Parameters

dateStyle
one of SHORT, MEDIUM, LONG, FULL, or DEFAULT.
timeStyle
one of SHORT, MEDIUM, LONG, FULL, or DEFAULT.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionif dateStyle or timeStyle is not one of SHORT, MEDIUM, LONG, FULL, or DEFAULT.

Remarks

Returns a DateFormat instance for formatting and parsing of both dates and time values in the manner appropriate for the user's default locale. See "Be wary of the default locale".

[Android Documentation]

Requirements

Namespace: Java.Text
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1