Calendar.ToFourDigitYear : Calendar « System.Globalization « C# / C Sharp by API






Calendar.ToFourDigitYear

 

    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));      
    }
  }

   
  








Related examples in the same category

1.Calendar.AddMinutes
2.Calendar.ToDateTime
3.Calendar.TwoDigitYearMax