format DateTime in entity