code the date