日付・時間処理

//現在の時間を文字列で入手

DateTime now = System.DateTime.Now;
string fileName = now.ToString("yyyyMMddhhmmss");