Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-31-2021, 02:47 PM
Marcia's Avatar
Marcia Marcia is offline Format current date as 1st day of June, 2021 Windows 10 Format current date as 1st day of June, 2021 Office 2019
Expert
Format current date as 1st day of June, 2021
 
Join Date: May 2018
Location: Philippines
Posts: 443
Marcia has a spectacular aura aboutMarcia has a spectacular aura aboutMarcia has a spectacular aura about
Default Format current date as 1st day of June, 2021

Hi all. I do the current date with:


{SAVEDATE\@"d"\*ordinal\*MERGEFORMAT} day of {SAVEDATE\@"MMMM"\*MERGEFORMAT}, 2021
Is there a better way of getting the current date straight without breaks so the updating of the day and month would be done in one mouse click?
Thank you.
Reply With Quote
  #2  
Old 05-31-2021, 03:14 PM
macropod's Avatar
macropod macropod is offline Format current date as 1st day of June, 2021 Windows 10 Format current date as 1st day of June, 2021 Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,232
macropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant future
Default

You could put the entire string, including both dates, in a QUOTE field. You also don't need the \*MERGEFORMAT and, ideally, your second field would output the year as well:
Code:
{QUOTE "{SAVEDATE \@ "d" \* ordinal} day of {SAVEDATE \@ "MMMM, YYYY"}"}
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 05-31-2021, 05:24 PM
Marcia's Avatar
Marcia Marcia is offline Format current date as 1st day of June, 2021 Windows 10 Format current date as 1st day of June, 2021 Office 2019
Expert
Format current date as 1st day of June, 2021
 
Join Date: May 2018
Location: Philippines
Posts: 443
Marcia has a spectacular aura aboutMarcia has a spectacular aura aboutMarcia has a spectacular aura about
Default

Paul, how do I paste the quote field using Quick Parts?
Reply With Quote
  #4  
Old 05-31-2021, 06:45 PM
macropod's Avatar
macropod macropod is offline Format current date as 1st day of June, 2021 Windows 10 Format current date as 1st day of June, 2021 Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,232
macropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant future
Default

The simplest answer is: don't. Instead, select your current range, then press Ctrl-F9 to enclose it in a pair of field braces, to which you then add the requisite 'QUOTE' and opening/closing double-quote pair.

Alternatively:
• Press Ctrl-F9 twice so you get {{}}
• Reposition the insertion point between either the {{ or the }} and press Ctrl-F9 again, so you end up with {{}{}}
• Then fill in the field coding so you end up with the:
Code:
{QUOTE "{SAVEDATE \@ "d" \* ordinal} day of {SAVEDATE \@ "MMMM, YYYY"}"}
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 05-31-2021, 06:55 PM
Charles Kenyon Charles Kenyon is offline Format current date as 1st day of June, 2021 Windows 10 Format current date as 1st day of June, 2021 Office 2019
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 7,667
Charles Kenyon has much to be proud ofCharles Kenyon has much to be proud ofCharles Kenyon has much to be proud ofCharles Kenyon has much to be proud ofCharles Kenyon has much to be proud ofCharles Kenyon has much to be proud ofCharles Kenyon has much to be proud ofCharles Kenyon has much to be proud ofCharles Kenyon has much to be proud of
Default

Note: the spaces are important.

You can paste that into your document and use this utility to make it an actual field:
Import and export field constructions as text by Graham Mayor, MVP
Reply With Quote
  #6  
Old 05-31-2021, 07:07 PM
Marcia's Avatar
Marcia Marcia is offline Format current date as 1st day of June, 2021 Windows 10 Format current date as 1st day of June, 2021 Office 2019
Expert
Format current date as 1st day of June, 2021
 
Join Date: May 2018
Location: Philippines
Posts: 443
Marcia has a spectacular aura aboutMarcia has a spectacular aura aboutMarcia has a spectacular aura about
Default

Did the simplest way and got a blank but I remembered the instruction in the previous related thread to save then update.
Thank you Paul. I'm sharing this to fellow employees so I am thinking on how to make them follow the steps easily. Alternately pressing Ctrl-F9 and Alt-F9 is very confusing to many of them.
Reply With Quote
  #7  
Old 05-31-2021, 07:13 PM
macropod's Avatar
macropod macropod is offline Format current date as 1st day of June, 2021 Windows 10 Format current date as 1st day of June, 2021 Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,232
macropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant future
Default

Quote:
Originally Posted by Marcia View Post
Alternately pressing Ctrl-F9 and Alt-F9 is very confusing to many of them.
That's not part of the instructions I posted.

In any event, if this is something you and your colleagues need to use regularly, the constructed field should be either added to the the relevant template or saved in that template as a Quick Part the users can insert as required.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #8  
Old 05-31-2021, 08:33 PM
Marcia's Avatar
Marcia Marcia is offline Format current date as 1st day of June, 2021 Windows 10 Format current date as 1st day of June, 2021 Office 2019
Expert
Format current date as 1st day of June, 2021
 
Join Date: May 2018
Location: Philippines
Posts: 443
Marcia has a spectacular aura aboutMarcia has a spectacular aura aboutMarcia has a spectacular aura about
Default

Saving a template to Quick Parts is new to me, as in many other features of Word. I will try it. Thank you.
Reply With Quote
  #9  
Old 05-31-2021, 08:39 PM
Marcia's Avatar
Marcia Marcia is offline Format current date as 1st day of June, 2021 Windows 10 Format current date as 1st day of June, 2021 Office 2019
Expert
Format current date as 1st day of June, 2021
 
Join Date: May 2018
Location: Philippines
Posts: 443
Marcia has a spectacular aura aboutMarcia has a spectacular aura aboutMarcia has a spectacular aura about
Default

Another please. I tried manually applying the superscript to st but when I updated it, the superscript went back to regular font. Is there another switch for the superscript fonf?
Reply With Quote
  #10  
Old 05-31-2021, 11:02 PM
Marcia's Avatar
Marcia Marcia is offline Format current date as 1st day of June, 2021 Windows 10 Format current date as 1st day of June, 2021 Office 2019
Expert
Format current date as 1st day of June, 2021
 
Join Date: May 2018
Location: Philippines
Posts: 443
Marcia has a spectacular aura aboutMarcia has a spectacular aura aboutMarcia has a spectacular aura about
Default

Quote:
Originally Posted by Charles Kenyon View Post
Note: the spaces are important.

You can paste that into your document and use this utility to make it an actual field:
Import and export field constructions as text by Graham Mayor, MVP
Thank you Charles.
Reply With Quote
  #11  
Old 06-01-2021, 04:07 AM
Charles Kenyon Charles Kenyon is offline Format current date as 1st day of June, 2021 Windows 10 Format current date as 1st day of June, 2021 Office 2019
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 7,667
Charles Kenyon has much to be proud ofCharles Kenyon has much to be proud ofCharles Kenyon has much to be proud ofCharles Kenyon has much to be proud ofCharles Kenyon has much to be proud ofCharles Kenyon has much to be proud ofCharles Kenyon has much to be proud ofCharles Kenyon has much to be proud ofCharles Kenyon has much to be proud of
Default

Quote:
Originally Posted by Marcia View Post
Saving a template to Quick Parts is new to me, as in many other features of Word. I will try it. Thank you.
Select the field, press Alt+F3. This defaults to the AutoText building block but you can choose Quick Parts as the Gallery if you want. Choose a name that you would not type ordinarily for easy insertion.

Otherwise, Insert > Quick Parts > Save Selection to Quick Parts Gallery.

Building Blocks are one of the hidden gems of Word.
Automated Boilerplate Using Microsoft Word
Where can Building Blocks be stored?
Reply With Quote
  #12  
Old 06-01-2021, 02:10 PM
macropod's Avatar
macropod macropod is offline Format current date as 1st day of June, 2021 Windows 10 Format current date as 1st day of June, 2021 Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,232
macropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant future
Default

Quote:
Originally Posted by Marcia View Post
Another please. I tried manually applying the superscript to st but when I updated it, the superscript went back to regular font.
For superscripted ordinals, see Insert A Date with Ordinal Numbering in out my Microsoft Word Date Calculation Tutorial 'Sticky' thread at the top of this forum:
https://www.msofficeforums.com/word/...-tutorial.html
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #13  
Old 06-01-2021, 05:23 PM
Guessed's Avatar
Guessed Guessed is offline Format current date as 1st day of June, 2021 Windows 10 Format current date as 1st day of June, 2021 Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 2,735
Guessed has much to be proud ofGuessed has much to be proud ofGuessed has much to be proud ofGuessed has much to be proud ofGuessed has much to be proud ofGuessed has much to be proud ofGuessed has much to be proud ofGuessed has much to be proud of
Default

Marcia

I am surmising here but your stated need to exit the file and re-open Word is likely not due to the issue you think it is. I suspect you are testing this field in a document that has not been saved yet. If that is the case, SaveDate won't have a value it can return yet so it returns a blank value.

SaveDate is an unfortunate field that is always one step behind in that it shows the date the document was previously saved until you update the field - which then means you need to save the document again, which then means you need to refresh the field etc. So to do testing of the field properly:
1. Save the document (to set the metadata value save date to right now)
2. Refresh the field
3. Save the document again to store the refreshed field value.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #14  
Old 06-01-2021, 05:26 PM
macropod's Avatar
macropod macropod is offline Format current date as 1st day of June, 2021 Windows 10 Format current date as 1st day of June, 2021 Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,232
macropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant future
Default

Quote:
Originally Posted by Guessed View Post
As to your superscript issue, I don't think there is going to be a fix for this.
My Microsoft Word Date Calculation Tutorial shows how it can be done.
Quote:
Originally Posted by Guessed View Post
You are using a field to get both the day number and the ordinal returned as a single entity. If you ask for the ordinal to be superscript then the number will be too.
Read the tutorial and be amazed!
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #15  
Old 06-01-2021, 07:13 PM
Guessed's Avatar
Guessed Guessed is offline Format current date as 1st day of June, 2021 Windows 10 Format current date as 1st day of June, 2021 Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 2,735
Guessed has much to be proud ofGuessed has much to be proud ofGuessed has much to be proud ofGuessed has much to be proud ofGuessed has much to be proud ofGuessed has much to be proud ofGuessed has much to be proud ofGuessed has much to be proud of
Default

Yes Paul. I saw your response after I posted so I went back and dropped that content from my response.

FWIW: I don't know why anyone would want to superscript ordinals so that is one of the autocorrects I always turn off on new Word installs.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Format current date as 1st day of June, 2021 Date picker content control to always show current date. lucky16 Word VBA 2 07-01-2016 01:14 PM
autotext and current format alysolyman Word VBA 0 02-21-2013 12:23 AM
Format current date as 1st day of June, 2021 Date Field to add 10 Days to Current Date Erbwon Word 6 11-12-2012 06:17 PM
Format current date as 1st day of June, 2021 Meaning of current date vs status date when saving baselines ketanco Project 1 02-08-2012 02:20 PM
Format current date as 1st day of June, 2021 How to call current PC date and/or current PC year KIM SOLIS Excel 2 11-04-2011 06:09 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:52 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2021 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft