C# DateTime to “YYYYMMDDHHMMSS” format

DateTime.Now.ToString("yyyyMMddHHmmss"); // case sensitive

Leave a Comment