How to Fix Word Mail Merge Date Format Switches That Do Not Work
Question details
The user needs to fix a Word mail merge document where applied date format switches are ignored, despite working perfectly in a new file.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Applying a date format switch to a mail merge field to change how dates from a data source are displayed.
- Observed behavior
- The date format switch works correctly in a blank document but is entirely ignored in the original document, which suggests file corruption.
Before recreating your main document or adjusting field codes, verify that the date formatting in your source database or spreadsheet is standardized.
Test in a New Document and Recreate the File
Since the formatting works in a new file, the original document is likely corrupted. Rebuilding the document is the safest and most reliable fix.
Document corruption can cause Word to ignore proper field formatting. Testing a single merge field in a clean file helps isolate whether the issue is with the field syntax or the document itself.
Launch Word and open a completely new, blank document.
Link the document to a small, sanitized sample of your data source to protect confidential information.
Insert the required date merge field and apply your format switch, such as \@ "dd MMMM yyyy".
Preview the results. If the date formats correctly, your original file is corrupted.
Copy the text and layout from the original document—making sure not to copy the final paragraph mark—and paste it into the new document. Re-insert your merge fields.

Verify and Update the Field Codes Manually
Ensure the format switch syntax is completely accurate and force the fields to update, which can sometimes override minor formatting glitches.
Perform Mail Merge and Format Dates Seamlessly in WPS Writer
WPS Writer offers a highly compatible and intuitive Mail Merge feature. If your current document is corrupted, migrating to WPS Office allows you to efficiently recreate your mail merge, connect to large data sources, and format date fields without glitches.
- 1. Open WPS Writer: Launch WPS Writer and open your template document or create a new blank file.
- 2. Start Mail Merge: Navigate to the 'References' tab and click on 'Mail Merge' to activate the toolset.
- 3. Connect Data Source: Click 'Open Data Source' and select your spreadsheet or database file containing the dates.
- 4. Insert Merge Fields: Click 'Insert Merge Field', select your date column, and apply standard field formatting rules if needed.
- 5. Preview and Finish: Click 'View Merged Data' to verify the date formats, then select 'Merge to Printer' or 'Merge to New Document'.

Frequently Asked Questions
What is the correct syntax for a Word date format switch?
The standard syntax requires adding \@ followed by the date format enclosed in quotes inside the field code. For example, { MERGEFIELD Date \@ "dd MMMM yyyy" } will format the date as 01 January 2024.
Why does my mail merge date show up as a number?
This happens because Word often pulls the raw serial number of the date directly from Excel. To fix it, you need to add a date format switch (like \@ "MM/dd/yyyy") to the Word merge field, or connect to the spreadsheet using DDE.
How do I toggle field codes on and off in Word?
You can toggle all field codes in your document by pressing ALT + F9 on your keyboard. To toggle just a single selected field, use SHIFT + F9.
Can document corruption cause mail merge fields to fail?
Yes, if a document has underlying XML corruption or conflicting hidden formatting, specific fields may completely ignore formatting switches even if the syntax is correct. Copying the text minus the final paragraph mark into a new document usually resolves this.




