Added dateDetect