182266/c-datetime-to-yyyymmddhhmmss-format
Use this. It is case sensitive by the way.
DateTime.Now.ToString("yyyyMMddHHmmss");