Share via


Date.Before(Date) Method

Definition

Tests if this date is before the specified date.

[Android.Runtime.Register("before", "(Ljava/util/Date;)Z", "GetBefore_Ljava_util_Date_Handler")]
public virtual bool Before (Java.Util.Date? when);
[<Android.Runtime.Register("before", "(Ljava/util/Date;)Z", "GetBefore_Ljava_util_Date_Handler")>]
abstract member Before : Java.Util.Date -> bool
override this.Before : Java.Util.Date -> bool

Parameters

when
Date

a date.

Returns

true if and only if the instant of time represented by this Date object is strictly earlier than the instant represented by when; false otherwise.

Attributes

Remarks

Tests if this date is before the specified date.

Java documentation for java.util.Date.before(java.util.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.

Applies to