Date formating in letters using Mail Merge

December 2016




Issue


I use mailmerg in Microsoftword to format various letters. data is imported from an excel sheet and letters are formatted in Microsoftword. Now problem is just that when date is imported from excel to word through mailmerg it looks like "2/3/2010" instead of "03-Feb-10" or "February 03, 2010".

Can any one pls give me some solution on this?

Solution


To solve this, just follow the steps below:
  • Click on the date merged field on the document
  • Right click and click on toggle the field code
  • Then after the field name, add the formatting in this format \@"dd-MMM-yyyy" or whatever format you want

Note


Thanks to rizvisa1 for this tip on the forum.

Related :

This document entitled « Date formating in letters using Mail Merge » from CCM (ccm.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.