I often have to convert dates when programming to do timeseries analysis, make a continuous variable for generalized additive models, etc. In MATLAB there are built in date functions which are helpful, yet in R I was forced to create some, or so I thought.

There are actually some nice routines in the Survival package including routines to convert to and from a Julian date (year day).