Results 1 to 2 of 2
  1. #1
    3 Star Lounger
    Join Date
    Feb 2001
    Location
    Leigh on Sea, Essex, England
    Posts
    263
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Formatting DocProperty fields (WD2002)

    Hi.

    I've got a cutom property, TenderReturnDate, which is defined as a date. Unfortunately, you have to be a little precise as to how you enter this date - generally it only seems to want to accept DD/MM/YYYY formats (or variants thereof). In my document, however, I want to format this date in DDDD D MMMM YYYY format, but I can't seem to format the field code at all.

    How can I do this, or can't I?

    Thanks.

    Stuart

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

    Re: Formatting DocProperty fields (WD2002)

    After the name of the property, you can add a format in the form @ "formatstring". In the format string:
    d, dd, ddd, dddd = day, in the form 8, 08, Fri, Friday
    M, MM, MMM, MMMM = month, in the form 8, 08, Aug, Augustus
    yy, yyyy = year, in the form 02, 2002

    In your case, use

    { DOCPROPERTY TenderReturnDate @ "dddd d MMMM yyyy" }

Posting Permissions

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