This documentation is archived and is not being maintained.
DateTime Greater Than Operator
.NET Framework 1.1
Determines whether one specified DateTime is greater than another specified DateTime.
[Visual Basic] returnValue = DateTime.op_GreaterThan(t1, t2) [C#] public static bool operator >( DateTime t1, DateTime t2 ); [C++] public: static bool op_GreaterThan( DateTime t1, DateTime t2 ); [JScript] returnValue = t1 > t2;
[Visual Basic] In Visual Basic, you can use the operators defined by a type, but you cannot define your own. You can use the Compare method instead of the DateTime greater than operator.
[JScript] In JScript, you can use the operators defined by a type, but you cannot define your own.
Arguments [Visual Basic, JScript]
Parameters [C#, C++]
Return Value
true if t1 is greater than t2; otherwise, false.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard
See Also
DateTime Structure | DateTime Members | System Namespace | Boolean
Show: