Thank you. I went through the code, and this will be a great help. But the problem I am having is that I need the time between the days calculated, not just the days. For example, the application I am working on has a "Duration of Maintenance" field to calculate possible service outages. If a user enters a start date of 11/18/08 and an end date of 11/19/08 with a start time related to the 11/18/08 date of 11:59 pm and an end time related to the end date of 11/19/08 of 3:00 am, I need the duration of maintenance field to auto fill with a duration of 3 hours and 1 minute. I can calculated the time, but not across days.
Thanks again for your help.