Please Note: This article is written for users of the following Microsoft Word versions: 2007, 2010, 2013, 2016, 2019, Word in Microsoft 365, and 2021. If you are using an earlier version (Word 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Word, click here: Monday's Date on Friday's Report.

Monday's Date on Friday's Report

Written by Allen Wyatt (last updated September 2, 2023)
This tip applies to Word 2007, 2010, 2013, 2016, 2019, Word in Microsoft 365, and 2021


1

Every Friday Ned produces a report that gets distributed in his company. He would like the heading of the report to always have the previous Monday's date in it. He wonders how he can have it dynamically display the date for the Monday of the current week.

If Ned were producing the report in Excel, calculating the past Monday's date would be very easy. This isn't Excel, however; the report is in Word. So the task is nowhere near as easy. There are a few of approaches you can take, however.

One approach is to actually create the Word document for your report on Monday. You don't have to put anything into the report; just create the document that will be used at the end of the week to create the report. You can then include a field in the header that inserts the date the document was created (the CreateDate field). It will always reflect the Monday on which the document was created.

If that doesn't fit your needs (perhaps you can't, for some reason, create the document on the Monday), you can try to create a date using a nested field. The following is a possibility:

{ date \@ "MMMM { ={date \@"dd"} -5} yyyy"}

Remember that each pair of field braces needs to be entered by using Ctrl+F9. The compound field will work for many dates, but will run into problems if the Friday on which you calculate the field is within the first five days of the month. (The calculation in the inner field will return a negative value on those days.) There is no easy way around this problem.

The easiest approach is to use a macro to insert the date. Macros can do date calculations quite easily. Here is an example of a quick little macro that can calculate the proper date:

Sub MondayBeforeToday()
    Subtract = Choose(Weekday(Date), 6, 7, 1, 2, 3, 4, 5)
    DateFormat = "dddd mm/dd/yyyy"
    Selection.InsertBefore Format((Date - Subtract), DateFormat)
End Sub

All you need to do is to position the insertion point where you want the date and then run the macro. It can be run on any day of the week and it will always insert the date of the previous Monday.

Note:

If you would like to know how to use the macros described on this page (or on any other page on the WordTips sites), I've prepared a special page that includes helpful information. Click here to open that special page in a new browser tab.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (9801) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, Word in Microsoft 365, and 2021. You can find a version of this tip for the older menu interface of Word here: Monday's Date on Friday's Report.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Displaying Letter Grades

Grading in schools is often done using numeric values. However, you may want to change those numeric values into letter ...

Discover More

Pasting a Comment into Your Worksheet

Excel allows you to not only put information into cells, but into comments attached to those cells. Here's how to copy ...

Discover More

Using the EOMONTH Function

If you need to determine the date of the last day in a month, it's hard to beat the flexibility of the EOMONTH function. ...

Discover More

The First and Last Word on Word! Bestselling For Dummies author Dan Gookin puts his usual fun and friendly candor back to work to show you how to navigate Word 2013. Spend more time working and less time trying to figure it all out! Check out Word 2013 For Dummies today!

More WordTips (ribbon)

Conditional Calculations in Word

Word allows you to insert simple formulas, using fields, in table cells. You can also create simple conditional ...

Discover More

Inserting the Document Creation Date

One of the pieces of information tracked by Word is when a document was first created. Here's how you can access that ...

Discover More

Counting Fields in a Document

Need to count the number of times a particular field appears in a document? It's easy to do when you apply the techniques ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is two more than 7?

2023-09-02 16:57:09

thierry.hoornaert@pandora.be

Hi Allen,

Another thing Ned could do is to add the [Date Picker Content Control] to the Quick Access Toolbar. It takes a few minutes to do so by choosing:
- [Customize the Quick Access Toolbar] > [More Commands ...]
- Select [All Commands]
- Scroll to and select [Date Picker Content Control]
- Click [Add>>]

Extra tip: move the Quick Access Toolbar under the Ribbon, and add everything you might need frequently. That is especially interesting for all those features that are hidden away or which takes too many strokes to use.

With macro's you could advise to put them not in the document itself, but in the Normal.dotm template. I know you know this, but readers could be tempted to create a .docm file, which is unnecessary in most cases.

Best regards,
Thierry Hoornaert


This Site

Got a version of Word that uses the ribbon interface (Word 2007 or later)? This site is for you! If you use an earlier version of Word, visit our WordTips site focusing on the menu interface.

Videos
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.