WP51 Macros   
  Voice Pro Home | WP51 home | macros | how-to | quick tips | links | feedback          Just for MTs  WP51 Forum

   

The Medical Banner Exchange
This site is a member of the Medical Banner Exchange

    Managing Dates and Date Formats

Managing Dates

The Mobile MT

Quick Envelopes

Keyboard Templates

Remap keys

WP51 & Win95

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:

  • Inserting a date code into a WP51 document
  • Inserting a date (text) into a WP51 document
  • Using date codes in merges
  • Formatting dates for use with the WP51 date feature
  • Changing your computer's date from within WP51
  • Cool date tricks
Macros referenced in this how-to page can be downloaded from the date macro page.

General

Note: 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:

  1. Code - A date code that is updated each time the document is opened and reflects the current date to which your computer is set
  2. Text - Uses the current date setting to place the date in your document as text. This, because it's just text, will not be updated each time the document is opened
  3. Merge Code - Another date code, but this one is specific to merges and cannot be used in regular documents
  4. Manual - You just type in the date.

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 document

To 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 document

To 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 merges

Date 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 feature

WP51 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:

Character Meaning
1 Day of the Month
2 Month (number)
3 Month (word)
4 Year (all four digits)
5 Year (last two digits)
6 Day of the Week (word)
7 Hour (24-hour clock)
8 Hour (12-hour clock)
9 Minute
0 am / pm
% Used before a number less than ten, will add leading zeroes.
Used before a month or day name, will abbreviate it.
$ Used before a number less than ten, will add a space in front of it.


Examples:

3 1, 4 = December 25, 1984
%6 %3 1, 4 = Tue Dec 25, 1984
%2/%1/5 (6) = 01/01/85 (Tuesday)
$2/$1/5 ($6) = 1/ 1/85 (Tue)
8:90 = 10:55am

Changing your computer's date from within WP51

Because 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]:

What you enter: C:\>date
DOS response: Current date is Mon 04-30-2001
                             Enter new date (mm-dd-yy):
What you enter: 04/29/2001
DOS response: C:\>

Or, you can pass the date to DOS at the same time you enter the date command:

What you enter: C:\>date 04/30/2001
DOS response: C:\>

To keep your fingers on the keyboard, combine this DOS function with the WP51 DOS command function: [CTRL][F1] [C]ommand

WP51 will present you with a status line menu that asks for your DOS command where you will enter "date 04/30/2001," for example. You'll press [ENTER] once to send the command and once to continue, but you'll never once have to touch the mouse. A macro to make this even easier (just a couple keystrokes) is included on the date macro page.

Cool date tricks

Okay, 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:

  • Macros that reset the date format and use the {MID} function can be used to automatically save files with a name of your choosing (could be from an existing variable - patient's last name, for example) and a date code extension. See the date macro page for an example.
  • If you frequently take phone messages, use a macro to type the message and automatically date and time it. See the date macro page for an example.
  • Use WP51 as a time clock for employees or for you.
  • Use WP51 to create time slips for attorneys and paralegals.


Pssst! Can you spare a moment?

We'd like to know if this page was helpful to you today
and how it might have been more helpful.

Please answer the four questions below and click submit.
You'll be returned to this page pronto!

How helpful was the information presented about dates?
(1=Extremely and 5=Not at all)

1
2
3
4
5

How would you rank the skill level required to use information found on this page?
(1=Complete beginner could use this information
and 5=Requires an expert to understand)

1
2
3
4
5

What brought you to this page?
I regularly visit this site.
I came to this page to find information on a specific topic.
I was just browsing.
I was looking for information on another word processor
I followed a link here, but this site isn't relevant to my search.

Is there anything we might do to make this page more helpful?

Thanks for your comments and opinions.
Click Submit and you'll be returned to this page.



  Voice Pro Home | WP51 Center | macros | how-to | quick tips | links | feedback           FAQs
Voice Pro, Inc.   

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