GregorianCalendar.MaxSupportedDateTime
using System;
using System.Globalization;
public class SamplesCalendar {
public static void Main() {
GregorianCalendar myCal = new GregorianCalendar();
Console.WriteLine( myCal.ToString() );
DateTime myMin = myCal.MinSupportedDateTime;
Console.WriteLine( "MinSupportedDateTime: {0:D2}/{1:D2}/{2:D4}", myCal.GetMonth(myMin), myCal.GetDayOfMonth(myMin), myCal.GetYear(myMin) );
DateTime myMax = myCal.MaxSupportedDateTime;
Console.WriteLine( "MaxSupportedDateTime: {0:D2}/{1:D2}/{2:D4}", myCal.GetMonth(myMax), myCal.GetDayOfMonth(myMax), myCal.GetYear(myMax) );
}
}
Related examples in the same category