format date to pallet edit