Udostępnij za pośrednictwem


SimpleDateFormat.ApplyPattern(String) Method

Definition

Applies the given pattern string to this date format.

[Android.Runtime.Register("applyPattern", "(Ljava/lang/String;)V", "GetApplyPattern_Ljava_lang_String_Handler")]
public virtual void ApplyPattern (string? pattern);
[<Android.Runtime.Register("applyPattern", "(Ljava/lang/String;)V", "GetApplyPattern_Ljava_lang_String_Handler")>]
abstract member ApplyPattern : string -> unit
override this.ApplyPattern : string -> unit

Parameters

pattern
String

the new date and time pattern for this date format

Attributes

Exceptions

if the pattern is null.

if the pattern is invalid.

Remarks

Applies the given pattern string to this date format.

Java documentation for java.text.SimpleDateFormat.applyPattern(java.lang.String).

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