Add date() call to verifyDateFormat function