Sets up an editable field to enter a date into. txt contains the name of the constant or game input with the prompt information following the |. The accelerator specifies the range for the model variable, the conversion units, and the 0 value. The conversion units must be Y, M, W or D for year, month, week and day respectively. The 0 value is specified as a date following this. For example
DATEVAR,"FINAL TIME",10,10,10,0,,[10|50]Y1/1/50
would treat the input number as a year, with year 0 being January 1, 1950 and the value allowed to range from 1/1/60 to 1/1/2000. Note that if only two digits are specified for a year 1900 is added to the number.
If you leave out a start date the 0 value is assumed to be 1/1/1900. If you leave out conversion units the dates are converted as yearly. The minimum and maximum values are measured in the units of the model variable not as dates and are optional (though recommended).
Dates can range from 1/1/100 to 1/1/32000.
NOTE Dates do not recognize leap years and for this reason may be inaccurate when converted to days or weeks.