+ Reply to Thread
Results 1 to 4 of 4

Format the date in mail merge in a formal way

  1. #1
    Registered User
    Join Date
    12-17-2020
    Location
    London
    MS-Off Ver
    2010
    Posts
    64

    Question Format the date in mail merge in a formal way

    Hello,

    I'm trying to find out if there is a way to format the date in mail merge in a formal way!

    so instead of having the date in this format { MERGEFIELD Date \@ “dddd, MMMM d, yyyy” } "Friday, July 2, 2019"

    I want it to appear in this way instead: "The second day of July 2019"

    and so on for the other days of the month. so the 3rd, 4th 31st, etc...

    Anyone who has experience with this can help please?

    Thank you

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Format the date in mail merge in a formal way

    You could get 1st 2nd, 3rd etc. using { MergefieldDate \@ d \*ordinal } but not 'first', 'second', 'third' etc.

    So the whole thing might look something like this.

    The { Mergefield Date \@ d \*ordinal } of { MERGEFIELD Date \@ “MMMM yyyy” }
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    12-17-2020
    Location
    London
    MS-Off Ver
    2010
    Posts
    64

    Re: Format the date in mail merge in a formal way

    I guess mail merge is not able to convert days numbers into English words, but your suggestion helped me solve half the issue, thanks a lot

  4. #4
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Format the date in mail merge in a formal way

    Mailmerge can express numbers as:
    • numbers, which can be formatted via the \# numeric picture switch;
    • ordinal numbering (1st, 2nd, 3rd, etc.) via the \* Ordinal switch;
    • words (one, two, three, etc.) via the \* CardText switch; and
    • ordinal numbering as words (first, second, third, etc.) via the \* OrdText switch.

    Hence:
    { Mergefield Date \@ d \* OrdText } of { MERGEFIELD Date \@ “MMMM yyyy” }
    Last edited by macropod; 02-04-2021 at 04:23 PM.
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 6
    Last Post: 09-30-2019, 01:14 PM
  2. Mail Merge Ordinal Date Format (Superscript)
    By nancyching1711 in forum Excel General
    Replies: 9
    Last Post: 05-02-2018, 07:59 PM
  3. [SOLVED] Getting wrong date format in mail merge word letter
    By mso3 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-18-2015, 07:01 AM
  4. [SOLVED] Help require to get date in dd mm yyyy format in mail merge letter
    By mso3 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-07-2015, 09:57 AM
  5. [SOLVED] Mail Merge date format
    By excelloser in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-01-2012, 05:41 AM
  6. Mail Merge Query - Format of Merge Fields in Word
    By carlosbourn in forum Excel General
    Replies: 2
    Last Post: 11-10-2007, 07:11 AM
  7. How do I keep the date from changing format in a mail merge?
    By Brynn Wilson in forum Excel General
    Replies: 1
    Last Post: 06-09-2005, 01:05 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1