making sure the date length is correct. switching || to &&