Java.Util.Date Class
A specific moment in time, with millisecond precision.

See Also: Date Members

Syntax

[Android.Runtime.Register("java/util/Date", DoNotGenerateAcw=true)]
public class Date : Java.Lang.Object, Java.IO.ISerializable, Java.Lang.ICloneable, Java.Lang.IComparable, IDisposable

Remarks

A specific moment in time, with millisecond precision. Values typically come from Java.Lang.JavaSystem.CurrentTimeMillis, and are always UTC, regardless of the system's time zone. This is often called "Unix time" or "epoch time".

Instances of this class are suitable for comparison, but little else. Use Java.Text.DateFormat to format a Date for display to a human. Use Java.Util.Calendar to break down a Date if you need to extract fields such as the current month or day of week, or to construct a Date from a broken-down time. That is: this class' deprecated display-related functionality is now provided by DateFormat, and this class' deprecated computational functionality is now provided by Calendar. Both of these other classes (and their subclasses) allow you to interpret a Date in a given time zone.

Note that, surprisingly, instances of this class are mutable.

[Android Documentation]

Requirements

Namespace: Java.Util
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1