fixed to show start and end date in required format.