Answers for "convert dstring to date"

C#
19

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
0

Convert to date format

df[Date] = pd.to_datetime(df[Date], format="%m%d%Y %H:%M:%S")
Posted by: Guest on May-04-2021

C# Answers by Framework

Browse Popular Code Answers by Language