Ways to insert the current date in a Word document and update it automatically

Source: Internet
Author: User
Tags current time switches

Ways to insert the current date in a Word document and update it automatically

Figure 1 Red-headed

Solution One

Inserts the current date in the document with the date and time feature.

Operation method

※ Insert the current date in the document with the "Date and time" feature ※

Step 1, position the cursor where you want to insert the current date.

Step 2, as shown in Figure 2, click the Insert tab → the date and time button in the text group to open the Date and Time dialog box.

Figure 2 Opening the Date and Time dialog box

Step 3, as shown in Figure 3, in the language (country/region) Drop-down list box, select Chinese (China), select the June 1, 2013 format in the Available formats list box, and check the Automatic Updates checkbox to insert the current date and time by clicking the OK button.

Figure 3 Inserting "date and time"

Solution Two

Inserts the current date in the document with the field code.

Operation method

※ Inserts the current time in the document with the domain code ※

Step 1, position the beacon light to the current date you want to insert.

Step 2, press

{Date @ "Eeee year o month a Day"}

Step 3, press

Knowledge expansion

※ What is domain ※

Fields in Microsoft Word are used as placeholders for data that might change in your document, that is, a field is a set of code that directs Word to automatically insert text, graphics, page numbers, or other information in your document. Fields in Word are similar to functions in Excel, each with a unique domain name and a self fixed structure. Take the Time field code that inserts the current date as an example, looking at the composition of the field, as shown in Figure 4.

Figure 4 Composition of the domain

Field feature character: That is, a pair of curly braces {}. It is similar to the entry of the formula in Excel must first input a "=", but it can not use the keyboard input directly, but press

Domain Name: the "date" in the upper form is called the "date field", and Word 2010 provides a total of 9 large classes of 74 domains.

Domain switch: the "@" in the code, in the field codes, to complete some specific operation of the additional instructions, using a different domain switch and the same domain name of the field code, you can get different field results.

Field results: That is, the result of a field, similar to the value of Excel function operations, in Word, to convert field code to field results, there are mainly the following methods.

Method 1: Position the cursor on the field code, right-click, select Update field on the pop-up shortcut menu, and if it is the field code you just entered, select Switch field code from the pop-up shortcut menu to convert the field code to the field result.

Method 2: The cursor is positioned in the field code, and the key is updated.

Method 3: Update the field with the Toggle view state, which means that the field code can be converted to field results by switching between different document views.

Method 4: Click Print Preview to convert the field code to field results.

※ Input field code Note ※

The following points should be noted in the Keyboard input field code.

1, the domain feature character, that is, a pair of curly braces {}, only by pressing

2, domain names and domain switches in the letters can be case-insensitive, field code characters and special symbols, but domain names, domain switches and code contains commas, parentheses, quotes, etc. must be entered in English state.

3, domain name and domain switch between the space can not be omitted, otherwise there will be errors.

4, no matter how long the field code, can not force line break, or there will be an error.

※ Field-related shortcut key summary ※

When you insert fields manually in Word, the shortcuts you often need to use are shown in table 1.

Table 1 shortcut keys related to fields

※date Field ※

Syntax: {Date @ date and time format}

Purpose: Inserts the current date.

The common date format field codes are shown in table 2.

Table 2 Date and time directives in the Date field

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.