This documentation is archived and is not being maintained.

DateTime.MaxValue Field

Represents the largest possible value of DateTime. This field is read-only.

[Visual Basic]
Public Shared ReadOnly MaxValue As DateTime
public static readonly DateTime MaxValue;
public: static DateTime MaxValue;
public static var MaxValue : DateTime;


The value of this constant is equivalent to 23:59:59.9999999, December 31, 9999, exactly one 100-nanosecond tick before 00:00:00, January 1, 10000.


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