Added date selection functionality