Command WR GET DATE AND TIME FORMAT

4D Write

WR GET DATE AND TIME FORMAT

version 6.5.4


WR GET DATE AND TIME FORMAT (area; dateFormat; timeFormat)

ParameterTypeDescription
areaLongint4D Write area
dateFormatIntegerNumber of the date format
timeFormatIntegerNumber of the time format

Description

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 4D constants, found in the "Date Display Formats " theme:

Date formatConstant (value)
<No date>wr no date format (0)
1/6/00System date short (1)
Thu, Jan 6 2000System date abbreviated (2)
Thursday, January 6 2000System date long (3)
01/06/2000Internal date short special (4)
January 6, 2000Internal date long (5)
Jan 6, 2000Internal date abbreviated (6)
01/06/2000Internal date short (7)

The timeFormat parameter returns the time format number for the inserted reference. You can compare the value received to the following 4D constants, found in the "Time Display Formats " theme:

Time formatConstant (value)
<No time>wr no time format (0)
HH:MM:SSHH MM SS (1)
HH:MMHH MM (2)
HH hours MM minutes SS secondsHour Min Sec (3)
HH hours MM minutesHour Min (4)
HH:MM AM PMHH MM AM PM (5)

See Also

WR INSERT DATE AND TIME.