I am converting DateTime
using this code
DateTime d2;
bool success = DateTime.TryParse(String.Format("{0:dd/MM/yyyy}", row["Remarks"].ToString().Trim()), out d2);
if (success) row["PublishedOn"] = String.Format("{0:dd/MM/yyyy}", d2);
but when i convert 23/02/2015 or dd greater than 12 it fails because it always take format as "MM/dd/yyyy"
.
How can I convert "dd/MM/yyyy"
from a string to a DateTime
?