Added functions for updating dates