Java.Text.SimpleDateFormat.ApplyPattern Method
Changes the pattern of this simple date format to the specified pattern which uses non-localized pattern characters.

Syntax

[Android.Runtime.Register("applyPattern", "(Ljava/lang/String;)V", "GetApplyPattern_Ljava_lang_String_Handler")]
public virtual void ApplyPattern (string template)

Parameters

template
the non-localized pattern.

Exceptions

TypeReason
Java.Lang.NullPointerExceptionif the pattern is null.
Java.Lang.IllegalArgumentExceptionif the pattern is invalid.

Remarks

Changes the pattern of this simple date format to the specified pattern which uses non-localized pattern characters.

[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