Correction in date accessing