Replace edate by ec_date