A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Insert date



 
 
Thread Tools Display Modes
  #1  
Old March 11th, 2009, 02:52 AM posted to microsoft.public.word.newusers
Steve[_40_]
external usenet poster
 
Posts: 16
Default Insert date

Is there a way to customize the Insert Date function? I want the
format to look like this:

Tues 3/11/09

Thanks!


--

To avoid situations in which you might make mistakes
may be the biggest mistake of all.

....Peter McWilliams
  #2  
Old March 11th, 2009, 03:48 AM posted to microsoft.public.word.newusers
Doug Robbins - Word MVP on news.microsoft.com
external usenet poster
 
Posts: 409
Default Insert date

Do you really want Tues or Mon, Tue, Wed, Thu, Fri, Sat, Sun, which are more
common abbreviations and for which you can use

{ Date \@ "ddd M/d/yy" }

There is however no switch that would give you Mond, Tues, Wedn, Thur, Frid,
Satu, Sund

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com

"Steve" wrote in message
...
Is there a way to customize the Insert Date function? I want the
format to look like this:

Tues 3/11/09

Thanks!


--

To avoid situations in which you might make mistakes
may be the biggest mistake of all.

...Peter McWilliams



  #3  
Old March 11th, 2009, 03:48 AM posted to microsoft.public.word.newusers
Suzanne S. Barnhill
external usenet poster
 
Posts: 31,786
Default Insert date

In the Insert | Date dialog, you can choose your default date format. In
order to make the format you suggest available, you may have to have this
selected as your default Short Date format in Windows Regional and Language
Options.

Alternatively, if you are using a DATE field, you can add a time/date
formatting switch to result in that format and save the field as an AutoText
entry.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org

"Steve" wrote in message
...
Is there a way to customize the Insert Date function? I want the
format to look like this:

Tues 3/11/09

Thanks!


--

To avoid situations in which you might make mistakes
may be the biggest mistake of all.

...Peter McWilliams


  #4  
Old March 11th, 2009, 07:55 AM posted to microsoft.public.word.newusers
Graham Mayor
external usenet poster
 
Posts: 18,297
Default Insert date

You could insert the date with a macro e.g. the following will insert the
days as
Mon
Tues
Wed
Thurs
Fri
Sat
Sun

Dim sDay As String
sDay = format(Date, "dddd")
Select Case sDay
Case Is = "Monday", "Wednesday", "Friday", "Saturday", "Sunday"
sDay = format(Date, "ddd")
Case Is = "Tuesday"
sDay = Left(sDay, 4)
Case Is = "Thursday"
sDay = Left(sDay, 5)
End Select
With Selection
.TypeText sDay & Chr(160)
.InsertDateTime DateTimeFormat:="M/d/yy", InsertAsField:=False
End With

http://www.gmayor.com/installing_macro.htm

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



Steve wrote:
Is there a way to customize the Insert Date function? I want the
format to look like this:

Tues 3/11/09

Thanks!



  #5  
Old March 12th, 2009, 06:51 AM posted to microsoft.public.word.newusers
Steve[_40_]
external usenet poster
 
Posts: 16
Default Insert date

"Doug Robbins - Word MVP on news.microsoft.com"
Do you really want Tues or Mon, Tue, Wed, Thu, Fri, Sat, Sun, which are more
common abbreviations and for which you can use
{ Date \@ "ddd M/d/yy" }


Thanks Doug, that's the format I'm looking for. But I'm not sure how
to use this formula - in a macro?


--

To avoid situations in which you might make mistakes
may be the biggest mistake of all.

....Peter McWilliams
  #6  
Old March 12th, 2009, 10:55 AM posted to microsoft.public.word.newusers
Doug Robbins - Word MVP on news.microsoft.com
external usenet poster
 
Posts: 409
Default Insert date

In a macro, use

Format(Date, "ddd M/d/yy")

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com

"Steve" wrote in message
...
"Doug Robbins - Word MVP on news.microsoft.com"
Do you really want Tues or Mon, Tue, Wed, Thu, Fri, Sat, Sun, which are
more
common abbreviations and for which you can use
{ Date \@ "ddd M/d/yy" }


Thanks Doug, that's the format I'm looking for. But I'm not sure how
to use this formula - in a macro?


--

To avoid situations in which you might make mistakes
may be the biggest mistake of all.

...Peter McWilliams



  #7  
Old March 12th, 2009, 02:12 PM posted to microsoft.public.word.newusers
Suzanne S. Barnhill
external usenet poster
 
Posts: 31,786
Default Insert date

No, it's just a field. Press Ctrl+F9 to insert the field (which will be
displayed at { }), then type the text between the braces.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org

"Steve" wrote in message
...
"Doug Robbins - Word MVP on news.microsoft.com"
Do you really want Tues or Mon, Tue, Wed, Thu, Fri, Sat, Sun, which are
more
common abbreviations and for which you can use
{ Date \@ "ddd M/d/yy" }


Thanks Doug, that's the format I'm looking for. But I'm not sure how
to use this formula - in a macro?


--

To avoid situations in which you might make mistakes
may be the biggest mistake of all.

...Peter McWilliams


  #8  
Old March 16th, 2009, 06:23 PM posted to microsoft.public.word.newusers
Steve[_40_]
external usenet poster
 
Posts: 16
Default Insert date

"Suzanne S. Barnhill" wrote:
No, it's just a field. Press Ctrl+F9 to insert the field (which will be
displayed at { }), then type the text between the braces.


I end up with this: { Date \@ "ddd M/d/yy" }

But it doesn't convert to anything, looks like I'm still doing it
wrong. Sigh...


--

To avoid situations in which you might make mistakes
may be the biggest mistake of all.

....Peter McWilliams
  #9  
Old March 16th, 2009, 07:17 PM posted to microsoft.public.word.newusers
Suzanne S. Barnhill
external usenet poster
 
Posts: 31,786
Default Insert date

Well, you then have to F9 to update (and Alt+F9 if necessary to toggle the
field display). Alternatively, you can type Date \@ "ddd M/d/yy", select it,
and press Ctrl+F9, then F9.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org

"Steve" wrote in message
...
"Suzanne S. Barnhill" wrote:
No, it's just a field. Press Ctrl+F9 to insert the field (which will be
displayed at { }), then type the text between the braces.


I end up with this: { Date \@ "ddd M/d/yy" }

But it doesn't convert to anything, looks like I'm still doing it
wrong. Sigh...


--

To avoid situations in which you might make mistakes
may be the biggest mistake of all.

...Peter McWilliams


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:23 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.