日付を文字列フォーマットに変換

ログファイル等に年月のファイル名を指定する場合。

string filename;
filename = string.Format("{0:yyyyMM}", DateTime.Today);