Class for date related functions.