DATE [ \@ "date-time picture"] [switches]

Inserts the current date.


date-time-pictureSpecifies a date format other than the default format.
switches 
\lInserts the date with the last format selected from the (Insert > Date and Time) dialog box.
\hSpecifies use of the Hijri/Lunar calendar
\sSpecifies use of the Saka Era calendar

REMARKS
* Inserts a DATE field when you click Insert Date on the Header and Footer toolbar. Unless you select a different format, the date is displayed in the format specified as part of the regional settings in Microsoft Windows Control Panel. To change this setting for Word, use the Default button in the Date and Time dialog box (Insert menu).
* The DATE and TIME fields can display a date, a time, or both, depending on the format you specify in a date-time picture switch.
* To use a format that's not listed in the Field dialog box, click the Field Codes button and type the format switch (format switch (\*): A switch or instruction that specifies the capitalization, numeral style, and character formatting that Microsoft Word uses in a field result.) directly in the Field codes box
* If you select a format in the Field dialog box (Field command, Insert menu), Word inserts a corresponding date-time picture switch.
* For the Microsoft documentation refer to support.microsoft.com

Examples

{ DATE \@ "dddd, MMMM d" } displays Saturday, November 26
{ DATE \@ "h:mm am/pm, dddd, MMMM d" } displays 10:00 AM, Saturday, November 26

© 2022 Better Solutions Limited. All Rights Reserved. © 2022 Better Solutions Limited Top