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.
KoreanCalendar::MaxSupportedDateTime Property
.NET Framework (current version)
Gets the latest date and time supported by the KoreanCalendar class.
Assembly: mscorlib (in mscorlib.dll)
public: [ComVisibleAttribute(false)] property DateTime MaxSupportedDateTime { virtual DateTime get() override; }
Property Value
Type: System::DateTimeThe latest date and time supported by the KoreanCalendar class, which is equivalent to the last moment of December 31, 9999 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. KoreanCalendar^ myCal = gcnew KoreanCalendar; 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.KoreanCalendar MinSupportedDateTime: 01/01/2334 (in Gregorian, 01/01/0001) MaxSupportedDateTime: 12/31/12332 (in Gregorian, 12/31/9999) */
Universal Windows Platform
Available since 10
.NET Framework
Available since 2.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 10
.NET Framework
Available since 2.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Show: