Question: I was working on a webview which was not working. I then noticed that I cannot even view google or any other webpage using the emulators browser. 

What could be the reason for this? Also do I need to setup the emulator to connect to the internet some how?

Please let me know. 

Thanks

Answer: 
You could use:

```
DateTime start = ...;
DateTime finish = ...;

for (DateTime x = start; x <= finish; x = x.AddDays(1))
{
   ... // use x
}

```
It will be pretty straight. See below:

```
DateTime validFrom =  (DateTime)dtValidFrom.Value;

DateTime validTo =  (DateTime)dtValidTo.Value;

for (DateTime dt = validFrom; dt <= validTo; dt = dt.AddDays(1))
{

}

```