To Four Digit Year
using System; using System.Globalization; class Class1 { static void Main(string[] args) { Calendar MyCalendar = new GregorianCalendar(); Console.WriteLine(MyCalendar.ToFourDigitYear(32)); Console.WriteLine(MyCalendar.ToFourDigitYear(28)); } }