You can use this:

DateTime.Now.ToString("yyyy-dd-M--HH-mm-ss");