----EDIT----

Oh im sorry that was a huge misstake :)

Let me ask the question again...

Heres an example, 

```
Datetime startTime = 2011-10-08 12:30:00
Datetime endTime = 2011-10-10 15:00:00

```

How many times does 12:00:00 - 13:00:00 occur between the two datetimes?

```
2011-10-08 12:30:00 - 2011-10-08 13:00:00 Not Ok (time has alredy started)
2011-10-09 12:00:00 - 2011-10-09 13:00:00 Ok
2011-10-10 12:00:00 - 2011-10-10 13:00:00 Ok

```

Expecting result 2.

Thanks in advance!