Date Class

Definition

A thin wrapper around a millisecond value that allows JDBC to identify this as an SQL DATE value.

[Android.Runtime.Register("java/sql/Date", DoNotGenerateAcw=true)]
public class Date : Java.Util.Date
[<Android.Runtime.Register("java/sql/Date", DoNotGenerateAcw=true)>]
type Date = class
    inherit Date
Inheritance
Attributes

Remarks

A thin wrapper around a millisecond value that allows JDBC to identify this as an SQL DATE value. A milliseconds value represents the number of milliseconds that have passed since January 1, 1970 00:00:00.000 GMT.

To conform with the definition of SQL DATE, the millisecond values wrapped by a java.sql.Date instance must be 'normalized' by setting the hours, minutes, seconds, and milliseconds to zero in the particular time zone with which the instance is associated.

Java documentation for java.sql.Date.

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.

Constructors

Date(Int32, Int32, Int32)
Obsolete.

Constructs a Date object initialized with the given year, month, and day.

Date(Int64)

Constructs a Date object using the given milliseconds time value.

Date(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
Day
Obsolete.

Returns the day of the week represented by this date.

(Inherited from Date)
Handle

The handle to the underlying Android instance.

(Inherited from Object)
Hours
Obsolete.

Returns the hour represented by this Date object. -or- Sets the hour of this Date object to the specified value.

(Inherited from Date)
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
Minutes
Obsolete.

Returns the number of minutes past the hour represented by this date, as interpreted in the local time zone. -or- Sets the minutes of this Date object to the specified value.

(Inherited from Date)
Month
Obsolete.

Returns a number representing the month that contains or begins with the instant in time represented by this Date object. -or- Sets the month of this date to the specified value.

(Inherited from Date)
PeerReference (Inherited from Object)
Seconds
Obsolete.

Returns the number of seconds past the minute represented by this date. -or- Sets the seconds of this Date to the specified value.

(Inherited from Date)
ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Time

Returns the number of milliseconds since January 1, 1970, 00:00:00 GMT represented by this Date object. -or- Sets this Date object to represent a point in time that is time milliseconds after January 1, 1970 00:00:00 GMT.

(Inherited from Date)
TimezoneOffset
Obsolete.

Returns the offset, measured in minutes, for the local time zone relative to UTC that is appropriate for the time represented by this Date object.

(Inherited from Date)
Year
Obsolete.

Returns a value that is the result of subtracting 1900 from the year that contains or begins with the instant in time represented by this Date object, as interpreted in the local time zone. -or- Sets the year of this Date object to be the specified value plus 1900.

(Inherited from Date)

Methods

After(Date)

Tests if this date is after the specified date.

(Inherited from Date)
Before(Date)

Tests if this date is before the specified date.

(Inherited from Date)
Clone()

Return a copy of this object.

(Inherited from Date)
CompareTo(Date)

Compares two Dates for ordering.

(Inherited from Date)
Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetDate()
Obsolete.

Returns the day of the month represented by this Date object.

(Inherited from Date)
GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
SetDate(Int32)
Obsolete.

Sets the day of the month of this Date object to the specified value.

(Inherited from Date)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
ToArray<T>() (Inherited from Object)
ToGMTString()
Obsolete.

Creates a string representation of this Date object of the form: <blockquote>

(Inherited from Date)
ToInstant()

Converts this Date object to an Instant.

(Inherited from Date)
ToLocaleString()
Obsolete.

Creates a string representation of this Date object in an implementation-dependent form.

(Inherited from Date)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
ValueOf(String)

Converts a string in JDBC date escape format to a Date value.

Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

IComparable.CompareTo(Object) (Inherited from Date)
IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to