Iterating through dates!!

kavitha.ramkumar

New member
Joined
Feb 27, 2007
Messages
1
Programming Experience
Beginner
hi All,
I need to iterate through the given two dates(startdate,enddate). Is it possible in VB.NET ?. My requirement is to display the dates in between them.I tried iterating by parsing the days from the startdate and end date. But the code looked verybad when i had multiple if statements.

Lets say my starting date is Feb 25 and end date is March 05. It should display like

Feb26 Feb27 Feb28 Mar01 ...Mar04


Any code snippets or any other better way?

regards,
Kavi
 
Back
Top