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: 
```
for(DateTime date=duedate;date.Date<DateTime.Now.Date;date=date.AddDays(1))
{
}

```

something like this
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))
{

}

```