Dealing with dates in actuarial mortality investigations
When we first wrote our survival-modelling software in late 2005, we had to decide how to represent dates for the purpose of calculating exposure times. We decided to adopt a real-valued approach, e.g. 14th March 1968 would be represented as 1968.177596 (the fractional part is \(\frac{31+29+14}{366}\), since 1968 is a leap year).
References: