Answers for "c# convert string to datetime any format"

C#
17

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
3

C# string to datetime

DateTime myDate = DateTime.ParseExact("2009-05-08 14:40:52,531", "yyyy-MM-dd HH:mm:ss,fff",
                                       System.Globalization.CultureInfo.InvariantCulture);
Posted by: Guest on March-01-2021
0

c# convert string to datetime any format

1628371962
Posted by: Guest on August-07-2021

Code answers related to "c# convert string to datetime any format"

C# Answers by Framework

Browse Popular Code Answers by Language