Why doesn't this work?
Public Class testDates
Inherits Object
Private mMonth As Integer
Private mDay As Integer
Private mYear As Integer
'constructor
Public Sub New(ByVal monthValue As Integer, ByVal dayValue As Integer, _
ByVal yearValue As Integer)
mMonth = monthValue
mDay = dayValue
mYear = yearValue
End Sub
Public Function ToStandardString() As String
Return mMonth & "/" & mDay & "/" & mYear
End Function
Public Function ToMMMMString() As String
Dim newString As String
newString = mMonth
Format(newString, "mmmm")
Return newString
End Function
Public Function ToMMMMDDYYYYString() As String
Dim anotherString As String
anotherString = mMonth & mDay & mYear
Format(anotherString, "mmmm dd, yyyy")
Return anotherString
End Function
End Class
Imports System.Windows.Forms
Module Module1
Sub Main()
Dim myDate As New testDates(2, 1, 1961)
Dim output As String
Dim output1 As String
Console.WriteLine(myDate.ToStandardString())
Console.WriteLine(myDate.ToMMMMString())
Console.WriteLine(myDate.ToMMMMDDYYYYString())
End Sub
End Module