4D v13

WR INSERT DATE AND TIME

Home

 
4D Write v13
WR INSERT DATE AND TIME

WR INSERT DATE AND TIME 


 

WR INSERT DATE AND TIME ( area ; dateFormat ; timeFormat ) 
Parameter Type   Description
area  Longint in 4D Write area
dateFormat  Integer in Number of the date format
timeFormat  Integer in 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 "" 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 "" 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

 
PROPERTIES 

Product: 4D
Theme: WR Database Objects
Number: 89435

 
INDEX

Alphabetical list of commands

 
HISTORY 

Created: 4D Write 6.5.4

 
SEE ALSO 

WR GET DATE AND TIME FORMAT