mm/dd/yyyy format in c# with datetime seconds code example Example: csharp datetime string format DateTime.Now.ToString("MM/dd/yyyy HH:mm:ss")