Implemented setting the date.