Changed the date and time inputs into buttons so that text in the inputs of ambiguous format does not cause errors