Answers for "DataType.DateTime.ToString("dd-mm-yyyy"))"

-1

DataType.DateTime.ToString("dd-mm-yyyy"))

DateTime dt = DateTime.ParseExact(yourObject.ToString(), "MM/dd/yyyy hh:mm:ss tt", CultureInfo.InvariantCulture);

string s = dt.ToString("dd/M/yyyy", CultureInfo.InvariantCulture);
Posted by: Guest on May-13-2021

Code answers related to "DataType.DateTime.ToString("dd-mm-yyyy"))"

Browse Popular Code Answers by Language