このコードが機能しない理由:
Directory.CreateDirectory(DateTime.ToString("dd-MM-yyyy"));
エラー:
Error 1 An object reference is required for the non-static field, method, or property 'System.DateTime.ToString(string)' Documents\Visual Studio 2008\Projects\WindowsFormsApplication1\WindowsFormsApplication1\Form1.cs 83 39 WindowsFormsApplication1
なにが問題ですか?フォルダ名を「This is folder of」にしてから今日の日付を追加したい場合、どのように表示する必要がありますか?