Error in date pattern corrected