Answers for "how to convert string to date type and then again to string"

C#
23

string to date

string iDate = "05/05/2005";
DateTime oDate = Convert.ToDateTime(iDate);
MessageBox.Show(oDate.Day + " " + oDate.Month + "  " + oDate.Year );
Posted by: Guest on March-08-2020

Code answers related to "how to convert string to date type and then again to string"

C# Answers by Framework

Browse Popular Code Answers by Language