DateTime.UtcNow.Date.ToString("YYYY-MM-DD")\ code example
Example: 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);