csharp datetime string format

C#
DateTime.Now.ToString("MM/dd/yyyy HH:mm:ss")
Source

Also in C#: