improved date selection