DateTime.GreaterThan Operator

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Determines whether one specified DateTime is greater than another specified DateTime.

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

Syntax

Public Shared Operator > ( _
    t1 As DateTime, _
    t2 As DateTime _
) As Boolean
public static bool operator >(
    DateTime t1,
    DateTime t2
)

Parameters

Return Value

Type: System..::.Boolean
true if t1 is greater than t2; otherwise, false.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

DateTime Structure

System Namespace

Boolean