Added simple date datatype check