GregorianCalendar.GetDaysInYear : GregorianCalendar « Development « VB.Net






GregorianCalendar.GetDaysInYear

 

Imports System
Imports System.Globalization
Imports Microsoft.VisualBasic

Public Class SamplesGregorianCalendar
   Public Shared Sub Main()
      Dim myCal As New GregorianCalendar()

      ' Displays the value of the CurrentEra property.
      Console.Write("CurrentEra:")
      For y = 2001 To 2005
         Console.Write(ControlChars.Tab + "{0}", myCal.GetDaysInYear(y, GregorianCalendar.CurrentEra))
      Next y
      Console.WriteLine()

   End Sub 
End Class 

   
  








Related examples in the same category

1.GregorianCalendar.GetDaysInMonth
2.GregorianCalendar.GetMonthsInYear
3.GregorianCalendar.GetWeekOfYear
4.GregorianCalendar.IsLeapDay
5.GregorianCalendar.IsLeapMonth
6.GregorianCalendar.IsLeapYear determines whether the specified year in the specified era is a leap year.
7.GregorianCalendar.MaxSupportedDateTime
8.GregorianCalendarTypes Enumeration defines the different language versions of the Gregorian calendar.