How can I restrict the number of times a date is selected?