handled date inputs