Could you use this value: time as UTC milliseconds from the epoch
A long value for the three dates and then just compare them.