c# ToString("hh:mm:ss") code example
Example 1: csharp datetime string format
DateTime.Now.ToString("MM/dd/yyyy HH:mm:ss")
Example 2: c# tostring mmm dd yyyy
DateTime.Today.ToString("MMM dd, yyyy");
DateTime.Now.ToString("MM/dd/yyyy HH:mm:ss")
DateTime.Today.ToString("MMM dd, yyyy");