date constraint