I have a datetime value that I want displaying as a string in particular format, at the moment I am trying this
lastUpdate = DateTime.ParseExact(tmpDt.ToString(), "d/M/YYYY",
CultureInfo.InvariantCulture).ToString();
The error i'm getting is FormatException
.ToString()ontmpDt? What type istmpDt?tmpDt.