|
|
|
| Voice Pro Home | WP51 home | macros | how-to | quick tips | links | feedback Just for MTs WP51 Forum | |
![]() |
This site is a member of the Medical Banner Exchange | |||||||||||||||||||||||||||||||||||||||||
| Managing Dates and Date Formats | ||||||||||||||||||||||||||||||||||||||||||
|
Managing Dates |
Recently a site visitor asked if I would add some information about dates and date macros to the web site. This how-to page covers the following topics:
GeneralNote: Throughout this page and the date macro page, I'll be referring to "date," but keep in mind that in WP51 date is inclusive of time. All information presented about dates is applicable to time. WordPerfect offers four ways to place a date in your document, if you count just typing in a date the old-fashioned way:
Each method has advantages, disadvantages, and specific uses, and each method can be used, after a fashion, with macros. Inserting a date code into a WP51 documentTo insert a date code into your document, press [Shift][F5] [C]ode. In Reveal Codes, this date code appears as [Date:x x, x], where x is a number corresponding to the specific date format features you have chosen. In the edit screen, you will just see the date. The date code uses the computer's date settings to determine what date is displayed and printed in your document. The date will be updated each time the document is opened and/or printed. Inserting a date (text) into a WP51 documentTo insert the current date as plain text, press [Shift][F5] [T]ext. In Reveal Codes and in the edit screen, this appears simply as a plain text date. This features also uses the computer's date settings to determine what date is placed in your document; however, because the date is plain text, it will not update. Using date codes in mergesDate codes can be used in either primary or secondary merge files. WP51 supports the older ^D character used by earlier WP versions for date insertion in merges. For merges, WP51 offers a different date code: [Shift][F9] [M]ore [D]ate [ENTER]. In Reveal Codes, this appears as [Mrg:DATE]; in the edit screen, this appears as {Date}. A quick glance at the Date section in the WP51 manual may lead you to believe that you must use the Merge Date Code in merge documents; however, the regular date code works equally well in both primary and secondary merge files. If you already have a template or data document set up with regular date codes, there is no need to convert the date codes to merge date codes before executing a merge. It's also worth noting that the Merge Date Code cannot be used directly in a macro, although, as with all macros and merges, this is with the proviso that macros and merges can interact. Formatting dates for use with the WP51 date featureWP51 date features can be customized so that the date and/or time displays in a selected format. Personally, I think the menu used to select the format is a bit unfriendly. On the date macro page is a macro you can use to select date settings from a list of common date formats. The formatting menu is accessed by pressing [Shift][F5] [F]ormat. Below are the options presented in that menu:
Examples:
Changing your computer's date from within WP51Because the date features rely upon your computer's date settings, you'll probably want to be sure that the computer's date is correct. Most users are familiar with the different methods of setting dates in Windows and DOS, but most WP51 users love the program because it doesn't require them to "mouse around" and keeps their fingers on the keyboard. For those folks, it may be more desirable to change the date from within WP51. This function is not available to you directly from WP51 (in other words, it's not offered as a menu option); however, you can combine one DOS function and one WP51 feature to accomplish the task. First, you probably know that you can change the date from a DOS command line using the DATE command. The nice thing about DOS is that most commands will accept arguments, switches, or parameters. So, you could just enter DATE from a command line and access the DOS date menu, enter the new date, and press [ENTER]: Cool date tricksOkay, so what can you do with dates, besides just putting them at the top of letters? Plenty! Here are some ideas to get you started:
|
| Voice Pro Home | WP51 Center | macros | how-to | quick tips | links | feedback FAQs |
|
|
Copyright © 2000-2001 Voice Pro, Inc.
Portions Copyright © 1995-2001 Mitzi L. D. Ponce
WordPerfect is a registered trademark of Corel Corporation.
Windows is a registered trademarks of Microsoft Corp.
This site is not affiliated with Corel Corporation or Microsoft Corporation.
web site design by
Nightshade Systems