changed the date created to date type