added enddate to is_date