This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft Edge More info about Internet Explorer and Microsoft Edge

Allocates a Date object and initializes it so that it represents the time at which it was allocated, measured to the nearest millisecond.

Allocates a Date object and initializes it to represent the specified number of milliseconds since the standard base time known as "the epoch", namely January 1, 1970, 00:00:00 GMT.

Allocates a Date object and initializes it so that it represents the date and time indicated by the string s , which is interpreted as if by the Date#parse method.

Allocates a Date object and initializes it so that it represents midnight, local time, at the beginning of the day specified by the year , month , and date arguments.

Allocates a Date object and initializes it so that it represents the instant at the start of the minute specified by the year , month , date , hrs , and min arguments, in the local time zone.

Allocates a Date object and initializes it so that it represents the instant at the start of the second specified by the year , month , date , hrs , min , and sec arguments, in the local time zone.

Allocates a Date object and initializes it so that it represents the time at which it was allocated, measured to the nearest millisecond.

[Android.Runtime.Register(".ctor", "()V", "")]
public Date ();
Attributes
RegisterAttribute

Allocates a Date object and initializes it to represent the specified number of milliseconds since the standard base time known as "the epoch", namely January 1, 1970, 00:00:00 GMT.

[Android.Runtime.Register(".ctor", "(J)V", "")]
public Date (long date);
[<Android.Runtime.Register(".ctor", "(J)V", "")>]
new Java.Util.Date : int64 -> Java.Util.Date

Parameters

Allocates a Date object and initializes it so that it represents the date and time indicated by the string s , which is interpreted as if by the Date#parse method.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]
[System.Obsolete("deprecated")]
public Date (string? s);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")>]
[<System.Obsolete("deprecated")>]
new Java.Util.Date : string -> Java.Util.Date

Parameters

protected Date (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Util.Date : nativeint * Android.Runtime.JniHandleOwnership -> Java.Util.Date

Parameters

Allocates a Date object and initializes it so that it represents midnight, local time, at the beginning of the day specified by the year , month , and date arguments.

[Android.Runtime.Register(".ctor", "(III)V", "")]
[System.Obsolete("deprecated")]
public Date (int year, int month, int date);
[<Android.Runtime.Register(".ctor", "(III)V", "")>]
[<System.Obsolete("deprecated")>]
new Java.Util.Date : int * int * int -> Java.Util.Date

Parameters

Allocates a Date object and initializes it so that it represents the instant at the start of the minute specified by the year , month , date , hrs , and min arguments, in the local time zone.

[Android.Runtime.Register(".ctor", "(IIIII)V", "")]
[System.Obsolete("deprecated")]
public Date (int year, int month, int date, int hrs, int min);
[<Android.Runtime.Register(".ctor", "(IIIII)V", "")>]
[<System.Obsolete("deprecated")>]
new Java.Util.Date : int * int * int * int * int -> Java.Util.Date

Parameters

Allocates a Date object and initializes it so that it represents the instant at the start of the second specified by the year , month , date , hrs , min , and sec arguments, in the local time zone.

[Android.Runtime.Register(".ctor", "(IIIIII)V", "")]
[System.Obsolete("deprecated")]
public Date (int year, int month, int date, int hrs, int min, int sec);
[<Android.Runtime.Register(".ctor", "(IIIIII)V", "")>]
[<System.Obsolete("deprecated")>]
new Java.Util.Date : int * int * int * int * int * int -> Java.Util.Date

Parameters