fixed typos
additional shared logic to streamline most common date selection handling logic