Use this simple VB.NET code to return the name of the month from an integer.
Example: 1 = January ….. 12 = December
1 2 3 4 5 6 7 | Private Function GetMonthName(ByVal monthNum As Integer) As String Try Dim strDate As New DateTime(1, monthNum, 1) Return strDate.ToString("MMM") Catch ex As Exception End Try End Function |
-
I Halligan
-
http://www.mikesel.info/ Mike Hudson













