Share via


DateTime.operator > Method

Determines whether one DateTime object is greater than another one.

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

Syntax

public static bool operator > (
         DateTime t1,
         DateTime t2
)

Parameters

  • t1
    A DateTime value that represents the first operand.
  • t2
    A DateTime value that represents the second operand.

Return Value

true if the value of t1 is greater than the value of t2; otherwise, false.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.

See Also

Reference

DateTime Structure
DateTime Members
System Namespace