12,396,047 members (65,018 online)
Rate this:
See more:
Hello,
I want dates between two dates , Its means list of dates between two dates can u guide or send any snippets
Posted 20-May-12 19:05pm
kingsa1.7K
justinonday 21-May-12 1:08am

Make it clear...!

Rate this:

## Solution 1

JF2015 21-May-12 1:17am

Good one. +5
sravani.v 21-May-12 1:37am

Thank you JF2015
P.Salini 21-May-12 1:49am

sravani.v 21-May-12 1:51am

Thank you salini
Rate this:

## Solution 4

```private List<datetime> GetDatesBetween (DateTime startDate , DateTime endDate)
{
List<datetime> allDates = new List<datetime>();
for (DateTime date = startDate; date <= endDate; date = date.AddDays(1))
return allDates;

}```
v3
Rate this:

## Solution 3

you can use loop sequence

e.g.

```DateTime dt1 = new DateTime(2012, 5, 1);
DateTime dt2 = DateTime.Now;

DropDownList ddl = new DropDownList();
while (dt1 < dt2)
{
}
```
Rate this:

## Solution 2

try this url..................
[^]

Top Experts
Last 24hrsThis month
 OriginalGriff 130 Jochen Arndt 85 BillWoodruff 70 khaled Ezzat 60 0x01AA 50
 OriginalGriff 6,128 Karthik Bangalore 2,382 ppolymorphe 2,360 F-ES Sitecore 1,877 Richard MacCutchan 1,727