0
我有這個作爲我的語法,當我通過代碼它提供了準確的日期,但是當我使用它來創建目錄,它給了我一個不準確的日期(日期用於創建文件夾是33.22.15_Created編程」使用日期時間來捕獲即將到來的日期
DateTime upcomingMonday = DateTime.Now;
while (upcomingMonday.DayOfWeek != DayOfWeek.Monday)
{
upcomingMonday = upcomingMonday.AddDays(1);
}
Directory.CreateDirectory(SaveLocation + upcomingMonday.ToString("mm.dd.yy") + "_Created Programattically\\");