DateTime.ParseExact[
^] Or
DateTime.TryParseExact[
^]
string returnDate = DateTime.ParseExact(Date, "dd/MM/yyyy", CultureInfo.InvariantCulture).ToString("yyyy/MM/dd");
Why you call convert DateTime to string and again convert back to DateTime?
You can use one of the above method to convert string to DateTime. No need to convert it back to string and then again to a DateTime. You need to understand that DateTime structure hold only the value and there is no display format. when we need to display it in any format we can call ToString or string.Format methods to convert it to a string with given format.