add cdate compare