stricter type detection for dates