HebrewCalendar::MinSupportedDateTime Property
Gets the earliest date and time supported by the HebrewCalendar type.
Assembly: mscorlib (in mscorlib.dll)
Property Value
Type: System::DateTimeThe earliest date and time supported by the HebrewCalendar type, which is equivalent to the first moment of January, 1, 1583 C.E. in the Gregorian calendar.
Microsoft Visual Basic represents time of day as the specified time on the minimum date supported by the DateTime type, which is January 1, 0001 C.E. However, the HebrewCalendar type does not support that minimum date. Consequently, if you call a method to format the time of day using the current calendar but you do not specify a format specifier, formatting uses the ISO 8601 sortable ("s") date/time pattern format specifier instead of the default general ("G") date/time pattern format specifier. For more information, see Standard Date and Time Format Strings.
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. HebrewCalendar^ myCal = gcnew HebrewCalendar; 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.HebrewCalendar MinSupportedDateTime: 04/07/5343 (in Gregorian, 01/01/1583) MaxSupportedDateTime: 13/29/5999 (in Gregorian, 09/29/2239) */
Available since 10
.NET Framework
Available since 2.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0