Date and time format

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am using Word 2003 in a Win XP Media Centerbox. I need to change the wasy
the date and time is displayed in my documents. If I type the date and time
as "05-10-2006 9:10pm" I want it to display as "2006.05.10.2110". I am able
to do it in Excel but can't find how to do it in Word.
 
Word does not automatically convert typed dates to anything. The simplest
and most consistent method to achieve your required format is to use a macro
to insert the date - assign it to a toolbar button and/or keyboard shortcut
http://www.gmayor.com/installing_macro.htm

Sub InsertUSFormatDate()
With Selection
.InsertDateTime DateTimeFormat:="yyyy.MM.dd.HHmm", InsertAsField:=False
End With
End Sub


--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top