I have object that contains french date and i want to vert it to english date
Exp: from 21/01/1990 00:00:00 to 1990-01-21 00:00:00
This my code to convert the date but didn't work because the output is 21/01/1990 00:00:00
, meaning it didn't convert the date.
if (obj.DATE_OPTIN.Equals("00/00/0000 00:00"))
obj.DATE_OPTIN = Convert.ToDateTime(obj.DATE_OPTIN_ORGANISATEUR).ToString("yyyy'-'MM'-'dd'T'HH':'mm'");
Where DATE_OPTIN
is a string value.