string formattedDate = DateTime.UtcNow.ToString("yyyy-MM-dd HH:mm:ss"); // Example output: 2015-01-16 16:26:32
System.Globalization.CultureInfo
IFormatProvider
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)