added date and time methods to controller