4D Write v16

WR GET DATE AND TIME FORMAT

Home

 
4D Write v16
WR GET DATE AND TIME FORMAT

WR GET DATE AND TIME FORMAT 


 

WR GET DATE AND TIME FORMAT ( 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 GET DATE AND TIME FORMAT command allows you to determine the display format of a selected dynamic date and/or time.

The dateFormat parameter returns the date format number for the inserted reference. You can compare the value received to the following constants, found in the "Date Display Formats" theme of 4D and the WR Parameters theme of 4D Write:

Constant Type Value Comment
Internal date abbreviated Longint 6 Dec 29, 2006
Internal date long Longint 5 December 29, 2006
Internal date short Longint 7 12/29/2006
Internal date short special Longint 4 12/29/06 (but 12/29/1896 or 12/29/2096)
System date abbreviated Longint 2 Sun, Dec 29, 2006
System date long Longint 3 Sunday, December 29, 2006
System date short Longint 1 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 can compare the value received to the following constants, found in the "Time Display Formats" theme of 4D and the WR Parameters theme of 4D Write:

Constant Type Value Comment
HH MM Longint 2 01:02
HH MM AM PM Longint 5 1:02 AM
HH MM SS Longint 1 01:02:03
Hour min Longint 4 1 hour 2 minutes
Hour min sec Longint 3 1 hour 2 minutes 3 seconds

Constant Type Value Comment
wr no time format Longint 0 No time format



See also 

WR INSERT DATE AND TIME

 
PROPERTIES 

Product: 4D Write
Theme: WR Database Objects
Number: 89437

 
HISTORY 

Created: 4D Write 6.5.4

 
ARTICLE USAGE

4D Write Language ( 4D Write v16)