I want loop date from today -count day format (“yyyy/MM/dd”)
variable count = int
Example count = 4
Today = 2021/05/18
I want datetime show 2021/05/13
Now I use DateTime.Today.AddDays(-count).ToString(“yyyy/MM/dd”) but show error.
Please guide me for solve it.