Clean up date selection on client side.