Take a look at TimeSpan.
>I have a date
> startdate = '6/20/2007 11:21 AM'
[quoted text clipped - 5 lines]
>
> Thanks
Hi,
> I have a date
> startdate = '6/20/2007 11:21 AM'
[quoted text clipped - 5 lines]
>
> Thanks
Simply do
TimeSpan duration = endDate - startDate;
int hours = duration.Hours;
HTH,
Laurent

Signature
Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog: http://www.galasoft.ch
PhotoAlbum: http://www.galasoft.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch