egi zaberl

egi zaberl

  • NA
  • 3
  • 0

Intersection of date time intervals

Oct 26 2008 9:50 AM
Dear all,

I want to get time value out from intersection of two time intervals.

Example:
Main time interval: 09:20:00 - 15:00:00
Time interval 1: 06:00:00 - 14:00:00
Time interval 2: 14:00:00 - 22:00:00

Intersection of main time interval and interval 1 is 04:40:00
Intersection of main time interval and interval 2 is 01:00:00

How to do that in C#?

Thank you!

Regards, Egi

Answers (3)