Answers for "c# string date and time to datetime"

C#
22

c# string to datetime

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
0

convert string to date in c#

DateTime convertedDate = DateTime.Parse(Date.ToString("yyyy-MM-dd"));
Posted by: Guest on September-29-2021

Code answers related to "c# string date and time to datetime"

C# Answers by Framework

Browse Popular Code Answers by Language