Fix date format of calendar field