Format Date and Time to show Military Time

G

Guest

How can I get the time portion of the "DATE AND TIME" to show the 24hr Clock
or military time as it is often referred to.

Instead of showing "09/22/06 2:15pm" I would like to see "09/22/06 14:15"
shown.


This function can be found under the Insert area of the Tool Bar
 
J

Jay Freedman

I don't think you can add to or change the formats listed in the Insert >
Date dialog, but there are two other ways to get the field you want.

(1) Insert the date/time you mentioned, with the "Automatically update"
option checked. Right-click the time and choose Toggle Field Codes. You'll
see something that looks like

DATE \@ "M/d/yy h:mm am/pm"

Change the lower case h to an upper case H, and delete the am/pm part.
Right-click and choose Update Field. If you don't want this to change, press
Ctrl+Shift+F9 to unlink the field (change it to plain text).

(2) Use the Insert > Field dialog instead. Choose Date (or you may want
CreateDate instead) in the list. Click the date/time format nearest to what
you want, which places the corresponding string in the box at the top of the
format list. Edit that string to say M/d/yy H:mm and click OK.

See http://www.word.mvps.org/FAQs/TblsFldsFms/DateFields.htm for a full
treatment of the subject.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

When you insert the
 

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

Top