#1   Report Post  
Posted to microsoft.public.word.docmanagement
Dale H Dale H is offline
external usenet poster
 
Posts: 1
Default Custom Date Format

We are looking to to add a custom field to a word document that would print
the date in the following format: Feb 2, 2008 would be 8033 (or 08033) where
8 (or 08) is the last digit of the current year, and 033 is the day number of
the year.

I can't seem to figure out how to set up a field that will calculate this
automatically based on the current date. (I could likely do it with VBA, but
this needs to be applied to many documents that already exist, so it would be
a large pain to add the code to all of them)

We are using Word 2003.
Does any guru have some ideas for me?
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default Custom Date Format

On Wed, 30 Jan 2008 14:56:01 -0800, Dale H
wrote:

We are looking to to add a custom field to a word document that would print
the date in the following format: Feb 2, 2008 would be 8033 (or 08033) where
8 (or 08) is the last digit of the current year, and 033 is the day number of
the year.

I can't seem to figure out how to set up a field that will calculate this
automatically based on the current date. (I could likely do it with VBA, but
this needs to be applied to many documents that already exist, so it would be
a large pain to add the code to all of them)

We are using Word 2003.
Does any guru have some ideas for me?


The top guru of date fields, fellow MVP macropod, posts his comprehensive
discussion at http://www.wopr.com/cgi-bin/w3t/show...?Number=249902.
Download the attachment (direct address
http://www.wopr.com/w3tfiles/10-249902-DateCalc.zip) and look in the enclosed
Word file for the topic "Find The Day Of The Year For A Given Date". It contains
a very complex field that computes the day of year for the current date.

The year part of your request is simply a matter of formatting the DATE field:

{ DATE \@ yy }

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit.
Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Delimited Date & Custom tables Conjurellc Microsoft Word Help 1 January 16th 07 10:50 AM
Change date format for Comments and display date in balloons Melissa Microsoft Word Help 13 January 30th 06 04:21 PM
How do I change the date format to a long date after merging it Marisa Mailmerge 2 October 31st 05 03:15 PM
I am trying to format the date returned by a custom date property Simon B Microsoft Word Help 2 August 13th 05 11:05 AM
Date issue merging from Excel field in Date format to Word Barb Reinhardt Mailmerge 1 December 17th 04 07:34 AM


All times are GMT +1. The time now is 02:34 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"