formatting the date on a DateTime? C# code example Example: csharp datetime string format DateTime.Now.ToString("MM/dd/yyyy HH:mm:ss")