add date constraint