oDate.Month
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Dim iDate As String = txtdt.Text Dim oDate As DateTime = DateTime.Parse(iDate) MsgBox(oDate.Day & " " & oDate.Month & " " & oDate.Year) End Sub
Dim thisMonth As Integer Dim name As String thisMonth = 4 ' Set Abbreviate to True to return an abbreviated name. name = MonthName(thisMonth, True) ' name now contains "Apr".
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)