Please enable JavaScript to view this site.

Vensim Help

Displays the value of a variable in date format. txt contains the name of the variable to display. acc specifies 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

SHOWDATEVAR,"TIME",10,10,10,0,,M1/1/2020

would output time as date where time is in months and Time 0 is January 1, 2020.

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