Correction in date format for calander