DateTime.Now.ToString("dd-MMM-yyy"); output 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);