Android.Text.Format.DateFormat Class
Utility class for producing strings with formatted date/time.

See Also: DateFormat Members

Syntax

[Android.Runtime.Register("android/text/format/DateFormat", DoNotGenerateAcw=true)]
public class DateFormat : Java.Lang.Object

Remarks

Utility class for producing strings with formatted date/time.

Most callers should avoid supplying their own format strings to this class' format methods and rely on the correctly localized ones supplied by the system. This class' factory methods return appropriately-localized Java.Text.DateFormat instances, suitable for both formatting and parsing dates. For the canonical documentation of format strings, see Java.Text.SimpleDateFormat.

In cases where the system does not provide a suitable pattern, this class offers the DateFormat.GetBestDateTimePattern(Java.Util.Locale, System.String) method.

The format methods in this class implement a subset of Unicode patterns. The subset currently supported by this class includes the following format characters: acdEHhLKkLMmsyz. Up to API level 17, only adEhkMmszy were supported. Note that this class incorrectly implements k as if it were H for backwards compatibility.

See Java.Text.SimpleDateFormat for more documentation about patterns, or if you need a more complete or correct implementation. Note that the non-format methods in this class are implemented by SimpleDateFormat.

[Android Documentation]

Requirements

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