change passed header date to iso format