Posted on 1998-11-27
Here is the problem: I got these values: FromDate, ToDate, DayFrom, DayTo, EveningFrom, EveningTo, NightFrom, NightTo.
FromDate and ToDate are date/time values going over multiple days. Dayfrom, dayto, eveningFrom, eveningto, nightfrom, nightto are time values defining a period of the day( Day: 08:00 - 14:59, Evening: 15:00-20:59, Night: 21:00-07:59).
I need to calculate how many minutes day, evening and night the fromdate-todate contain.
Anyone know of a function like that?