Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    Jun 2004
    Location
    Oxford, Oxfordshire, United Kingdom
    Posts
    203
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Date format in mailmerge (XP SR 2)

    Subject edited by HansV to aid future searches

    I use Access queries as a secondary file for mailmerges in Word. One of the fields is a date. Try as I may, I can't get the date to display in anything other than US mmddyy form--whereas as a British business we need at least ddmmyy, if not indeed the month as a word. Has anyone any ideas as to how to proceed?

    best wishes

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 28 Times in 28 Posts

    Re: Date format in mailmerge (XP SR 2)

    Right click in the date field in the merge document.
    Select 'Toggle Field Codes' from the popup menu.
    You will see something like

    <code>{ MERGEFIELD DateField * MERGEFORMAT }</code>

    where DateField is the name of the field in the data source. Insert a formatting switch after the field name, before the * MERGEFORMAT (if present):

    <code>{ MERGEFIELD DateField @ "d MMMM yyyy" * MERGEFORMAT }</code>

    then press F9 to hide the field code and update the result. You can change the format:

    d = day number: 1 .. 31
    dd = day number with leading zero: 01 .. 31
    ddd = abbreviated day name: Sun, Mon, ...
    dddd = full day name: Sunday, Monday, ...

    m = month number: 1 .. 12
    mm = month number with leading zero: 01 .. 12
    mmm = abbreviated month name: Jan, Feb, ...
    mmmm = full month name: January, February, ...

    yy = year with two digits: 99, 05
    yyyy = year with four digits: 1999, 2005

  3. #3
    3 Star Lounger
    Join Date
    Jun 2004
    Location
    Oxford, Oxfordshire, United Kingdom
    Posts
    203
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Date format in mailmerge (XP SR 2)

    thanks--that's wonderful

    Philip

Posting Permissions

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