Home | Tips | Library | Other Authors | Other WP Sites | Writer's Links | Contact | Site Map | Donate

Barry MacDonnell's
Toolbox for WordPerfect

Macros, tips, and templates for Corel® WordPerfect® for Windows®
© Copyright 1996-2018 by Barry MacDonnell. All Rights Reserved.

Page updated Aug 12, 2014

"Date Inserter" - View a scrollable calendar and quickly insert any selected date into your document in various formats (including "legal-style" dates) - Optionally have the macro add or subtract "x" days from the selected date.

Download DateIns.zip (v1.03; 07/01/2014; 11,685 bytes)

Compatible with WordPerfect X6 but should work in other versions back to WP8

Downloading, Documentation, Modifications, and Support


This macro displays a dialog on screen
(screen shot here) with a date field that lets you pick a desired date from a calendar (or simply type in a desired date), and then insert that date at the current cursor location with the click of a push button, in any of several different formats.

Examples of the default formats are -

        May 31, 2014

        Saturday, May 31, 2014

        the 31st day of May, 2014


New with version 1.03:
Other options let you -

        - add or subtract "x" days from the desired date before inserting the date,

        - display the selected date on screen only, or

        - add bold formatting to the date.

Note that the inserted date is a "static" date -- it will not automatically change to the current date if the document is opened at a later time. For that, you should use WordPerfect's menu choice: Insert, Date/Time, <choose a date/time format>, enable the checkbox "Keep the inserted date current," and click Insert.


The current version of this macro (v1.03) gets the current user's date format from Windows (stored in Control Panel; Region and Language). It assumes the "short" date is displayed in the format of M/d/yyyy -- e.g., August 12, 2014, as used in the English (United States) format. It will not work with other date formats. [Hopefully this will be fixed in the future, although the macro language presents certain difficulties when using a calendar tool in a dialog.]


Simply place the cursor where you want the date inserted in the document and then play the macro. Choose the desired date and other options, then press the appropriate push button. (A menu checkbox option lets you display the date on screen in a message box dialog instead of inserting it; press OK to dismiss the dialog.)

Modifications and Notes

•  Several menu items can be set to other defaults in the User Modification Area at the top of the macro's code.

Dates in this macro follow the (American) Month-Day-Year format. To change date formats that are inserted by the pushbuttons on the main menu see comments at the top of the macro's code.