string to date vb string to date vb

The solution for “string to date vb string to date vb” can be found here. The following code will assist you in solving the problem.

string iDate = “05/05/2005″;
DateTime oDate = Convert.ToDateTime(iDate);
MessageBox.Show(oDate.Day + ” ” + oDate.Month + ” ” + oDate.Year );
Dim iDate As String = “05/05/2005″
Dim oDate As DateTime = Convert.ToDateTime(iDate)
MsgBox(oDate.Day & ” ” & oDate.Month & ” ” & oDate.Year)

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

Similar Posts