validating the date with alert and

validating the date with alert and hide keyboard with touch