4D Write v16WR INSERT DATE AND TIME |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D Write v16
WR INSERT DATE AND TIME
|
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 | |||||
The WR INSERT DATE AND TIME command 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.
You must use the following 4D constants, found in the "Date Display Formats" theme of 4D and the WR Parameters theme of 4D Write:
Constant | Type | Value | Comment |
System date short | Longint | 1 | 12/29/2006 |
System date abbreviated | Longint | 2 | Sun, Dec 29, 2006 |
System date long | Longint | 3 | Sunday, December 29, 2006 |
Internal date short special | Longint | 4 | 12/29/06 (but 12/29/1896 or 12/29/2096) |
Internal date long | Longint | 5 | December 29, 2006 |
Internal date abbreviated | Longint | 6 | Dec 29, 2006 |
Internal date short | Longint | 7 | 12/29/2006 |
Constant | Type | Value | Comment |
wr no date format | Longint | 0 | No date format |
The timeFormat parameter returns the time format number for the inserted reference. You must use the following 4D constants, found in the "Time Display Formats" theme of 4D and the WR Parameters theme of 4D Write::
Constant | Type | Value | Comment |
HH MM SS | Longint | 1 | 01:02:03 |
HH MM | Longint | 2 | 01:02 |
Hour min sec | Longint | 3 | 1 hour 2 minutes 3 seconds |
Hour min | Longint | 4 | 1 hour 2 minutes |
HH MM AM PM | Longint | 5 | 1:02 AM |
Constant | Type | Value | Comment |
wr no time format | Longint | 0 | No time format |
Product: 4D Write
Theme: WR Database Objects
Number:
89435
Created: 4D Write 6.5.4
4D Write Language ( 4D Write v16)