VB.NET Display Month in Text Not Number Format
-
Private Sub showMonth() MonthlyCalendar1.FirstDate = d txtMonth.Text = DatePart(DateInterval.Month, d) & "," & " " & DatePart (DateInterval.Year, d) End Sub The above code displays the month in a number format like 4, 2005. I want to know how to modify the above code to display the month in April, 2005 format. How should I do it? I have tried select case but I get an error saying that I can't combine 'Date' with an 'Integer'.
-
Private Sub showMonth() MonthlyCalendar1.FirstDate = d txtMonth.Text = DatePart(DateInterval.Month, d) & "," & " " & DatePart (DateInterval.Year, d) End Sub The above code displays the month in a number format like 4, 2005. I want to know how to modify the above code to display the month in April, 2005 format. How should I do it? I have tried select case but I get an error saying that I can't combine 'Date' with an 'Integer'.