identify date and format