Imports System
Imports System.Globalization
Imports Microsoft.VisualBasic
Public Class MainClass
Public Shared Sub Main()
Dim myCal As New JulianCalendar()
Dim y As Integer
' Displays the value of the CurrentEra property.
Console.Write("CurrentEra:")
For y = 2001 To 2005
Console.Write(ControlChars.Tab + "{0}", myCal.GetMonthsInYear(y, JulianCalendar.CurrentEra))
Next y
End Sub
End Class
|