# Thread: number of hours between 2 dates

1. ## number of hours between 2 dates

hi everyone,

i am not been able to calculate the number of hours between 2 dates, but there is a condition that 2 days of the week are off (not working hours i.e. saturday and sunday), so these two days shud not be included.

i am a newbie in C language, plz help me with the code.

Thanks alot
Gaurav

2. Doo Doo Deet. We're sorry, you have made a post that is invalid, and help for you is no longer an option. If you feel you have reached this recording in error, please read the Announcements and try your post again.

Quzah.

3. just think how would you do it real life. Figure out how many days are in each month. then count all the days until you get to the specified date.

4. start learning by reading a book. HINT: You have to use time.

5. You don't have to use the time functions. You can simply ask for two dates, figure out how many days there are, multiply by 24. They never said anything about counting the exact number of hours based on the time in each day. So you get to assume they mean entire days worth.

Quzah.