how to tell if its a date