Added functions to track dates as well as times.