WR INSERT DATE AND TIME

4D - Documentation   Français   English   German   4D Write, Command Theme List   4D Write, Command Alphabetical List   4D Write, Constant Theme List   Back   Previous   Next

version 6.5.4


WR INSERT DATE AND TIME (area; dateFormat; timeFormat)

ParameterTypeDescription
areaLongint4D Write area
dateFormatIntegerNumber of the date format
timeFormatIntegerNumber 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:

dateFormatNameValue
<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.

timeFormatValue
<no hour>0
HH:MM:SS1
HH:MM2
HH hours MM minutes SS seconds3
HH hours MM minutes4
HH:MM AM PM5

See Also

WR GET DATE AND TIME FORMAT.


4D - Documentation   Français   English   German   4D Write, Command Theme List   4D Write, Command Alphabetical List   4D Write, Constant Theme List   Back   Previous   Next