The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
JulianCalendar::MinSupportedDateTime Property
.NET Framework (current version)
Gets the earliest date and time supported by the JulianCalendar class.
Assembly: mscorlib (in mscorlib.dll)
public: [ComVisibleAttribute(false)] property DateTime MinSupportedDateTime { virtual DateTime get() override; }
Property Value
Type: System::DateTimeThe earliest date and time supported by the JulianCalendar class, which is equivalent to the first moment of January 1, 0001 C.E. in the Gregorian calendar.
The following code example gets the minimum value and the maximum value of the calendar.
using namespace System; using namespace System::Globalization; int main() { // Create an instance of the calendar. JulianCalendar^ myCal = gcnew JulianCalendar; Console::WriteLine( myCal ); // Create an instance of the GregorianCalendar. GregorianCalendar^ myGre = gcnew GregorianCalendar; // Display the MinSupportedDateTime and its equivalent in the GregorianCalendar. DateTime myMin = myCal->MinSupportedDateTime; Console::Write( "MinSupportedDateTime: {0:D2}/{1:D2}/{2:D4}", myCal->GetMonth( myMin ), myCal->GetDayOfMonth( myMin ), myCal->GetYear( myMin ) ); Console::WriteLine( " (in Gregorian, {0:D2}/{1:D2}/{2:D4})", myGre->GetMonth( myMin ), myGre->GetDayOfMonth( myMin ), myGre->GetYear( myMin ) ); // Display the MaxSupportedDateTime and its equivalent in the GregorianCalendar. DateTime myMax = myCal->MaxSupportedDateTime; Console::Write( "MaxSupportedDateTime: {0:D2}/{1:D2}/{2:D4}", myCal->GetMonth( myMax ), myCal->GetDayOfMonth( myMax ), myCal->GetYear( myMax ) ); Console::WriteLine( " (in Gregorian, {0:D2}/{1:D2}/{2:D4})", myGre->GetMonth( myMax ), myGre->GetDayOfMonth( myMax ), myGre->GetYear( myMax ) ); } /* This code produces the following output. System.Globalization.JulianCalendar MinSupportedDateTime: 01/03/0001 (in Gregorian, 01/01/0001) MaxSupportedDateTime: 10/19/9999 (in Gregorian, 12/31/9999) */
Universal Windows Platform
Available since 10
.NET Framework
Available since 2.0
Available since 10
.NET Framework
Available since 2.0
Show: