GreaterThanOrEqual Operator
Collapse the table of content
Expand the table of content

DateTime.GreaterThanOrEqual Operator (DateTime, DateTime)

 
equivalentCodeEntityM:System.DateTime.Compare(System.DateTime,System.DateTime)

Determines whether one specified DateTime represents a date and time that is the same as or later than another specified DateTime.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

Public Shared Operator >= (
	t1 As Date,
	t2 As Date
) As Boolean

Parameters

t1
Type: System.DateTime

The first object to compare.

t2
Type: System.DateTime

The second object to compare.

Return Value

Type: System.Boolean

true if t1 is the same as or later than t2; otherwise, false.

The GreaterThanOrEqual operator determines the relationship between two DateTime values by comparing their number of ticks. Before comparing DateTime objects, make sure that the objects represent times in the same time zone. You can do this by comparing the values of their Kind property.

Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show:
© 2016 Microsoft