DateFormat.GetDateFormat(Context) Method
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.
Returns a java.text.DateFormat
object that can format the date
in short form according to the context's locale.
[Android.Runtime.Register("getDateFormat", "(Landroid/content/Context;)Ljava/text/DateFormat;", "")]
public static Java.Text.DateFormat? GetDateFormat(Android.Content.Context? context);
[<Android.Runtime.Register("getDateFormat", "(Landroid/content/Context;)Ljava/text/DateFormat;", "")>]
static member GetDateFormat : Android.Content.Context -> Java.Text.DateFormat
- context
- Context
the application context
the java.text.DateFormat
object that properly formats the date.
- Attributes
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.
Produkt | Versioner |
---|---|
.NET for Android | .NET for Android API 34, .NET for Android API 35 |