handle blank dates