saifullah khan

saifullah khan

  • NA
  • 335
  • 295.2k

How to get the three previous dates

Jul 16 2011 2:16 AM
Hi,

How can i get the previous three dates from the current date. for example the current date is 16/07/2011. so can i get the previous dates(15/07/2011,14/07/2011,13/07/2011).note that month can also be changed. like if date is 01/07/2011 and i want to get the previous three dates so in this case not only day but also month will be changed. so please tell me how to do this using asp.net with c#

Answers (1)