%Y-%m-%d %H:%M:%S cannot display datetime asp.net code example
Example: C# datetime.now to string only numbers
DateTime.Now.ToString("yyyyMMddHHmmss"); // case sensitive
DateTime.Now.ToString("yyyyMMddHHmmss"); // case sensitive