GregorianCalendarTypes Enumeration defines the different language versions of the Gregorian calendar. : GregorianCalendar « Development « VB.Net






GregorianCalendarTypes Enumeration defines the different language versions of the Gregorian calendar.

 

Imports System
Imports System.Globalization

Public Class SamplesGregorianCalendar

   Public Shared Sub Main()
      Dim myCIdeDE As New CultureInfo("de-DE", False)
      Dim myCIenUS As New CultureInfo("en-US", False)
      Dim myCIfrFR As New CultureInfo("fr-FR", False)
      Dim myCIruRU As New CultureInfo("ru-RU", False)

      Dim myCal = New GregorianCalendar()


      myCIruRU.DateTimeFormat.Calendar = myCal

      Dim myDT As New DateTime(2002, 1, 3, 13, 30, 45)

      Console.WriteLine("de-DE: {0}", myDT.ToString("F", myCIdeDE))
      Console.WriteLine("en-US: {0}", myDT.ToString("F", myCIenUS))
      Console.WriteLine("fr-FR: {0}", myDT.ToString("F", myCIfrFR))
      Console.WriteLine("ru-RU: {0}", myDT.ToString("F", myCIruRU))
   End Sub
End Class

   
  








Related examples in the same category

1.GregorianCalendar.GetDaysInMonth
2.GregorianCalendar.GetDaysInYear
3.GregorianCalendar.GetMonthsInYear
4.GregorianCalendar.GetWeekOfYear
5.GregorianCalendar.IsLeapDay
6.GregorianCalendar.IsLeapMonth
7.GregorianCalendar.IsLeapYear determines whether the specified year in the specified era is a leap year.
8.GregorianCalendar.MaxSupportedDateTime