How can I get the date format in PDF output to match the date format in the preview output?