version 6.5.4
WR INSERT DATE AND TIME (area; dateFormat; timeFormat)
Parameter | Type | Description | |
area | Longint | 4D Write area | |
dateFormat | Integer | Number of the date format | |
timeFormat | Integer | Number of the time format |
Description
The command WR INSERT DATE AND TIME allows you to insert at the cursor location a reference that displays the dynamic date and/or time. If there is a current text selection in your document, it will be replaced with the inserted reference.
The dateFormat parameter allows you to set a display format for the date reference.
Here are the values you can use:
dateFormat | Name | Value |
<no date> | 0 | |
6/01/00 | (Short) | 1 |
Thu 6 Jan 2000 | (Abbreviated) | 2 |
Thursday 6 January 2000 | (Long) | 3 |
01/06/2000 | (MM DD YYYY) | 4 |
January 6, 2000 | (Month Day Year) | 5 |
Jan 6, 2000 | (Abbr Month Day) | 6 |
06/01/2000 | (MM DD YYYY forced) | 7 |
The timeFormat parameter returns the time format number for the inserted reference.
timeFormat | Value |
<no hour> | 0 |
HH:MM:SS | 1 |
HH:MM | 2 |
HH hours MM minutes SS seconds | 3 |
HH hours MM minutes | 4 |
HH:MM AM PM | 5 |
See Also