Implemented date selection