date selection works