Läs på engelska

Dela via


DateFormat.GetDateFormat(Context) Method

Definition

Returns a java.text.DateFormat object that can format the date in short form according to the context's locale.

C#
[Android.Runtime.Register("getDateFormat", "(Landroid/content/Context;)Ljava/text/DateFormat;", "")]
public static Java.Text.DateFormat? GetDateFormat(Android.Content.Context? context);

Parameters

context
Context

the application context

Returns

the java.text.DateFormat object that properly formats the date.

Attributes

Remarks

Returns a java.text.DateFormat object that can format the date in short form according to the context's locale.

Java documentation for android.text.format.DateFormat.getDateFormat(android.content.Context).

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

Produkt Versioner
.NET for Android .NET for Android API 34, .NET for Android API 35