Added some more date handling functions.