Dim iDate As String = "05/05/2005" Dim oDate As DateTime = Convert.ToDateTime(iDate) MsgBox(oDate.Day & " " & oDate.Month & " " & oDate.Year)
import datetime # str value "Apr 2, 2019" convert into any format. datetime.datetime.strptime('Apr 2, 2019', '%b %d, %Y').strftime('%a, %d %b %Y')
string iDate = "05/05/2005"; DateTime oDate = Convert.ToDateTime(iDate); MessageBox.Show(oDate.Day + " " + oDate.Month + " " + oDate.Year );
.Net str to DateTime