date type check