CARenderingStyle::DateTimeAsReal
ADE User Guide > ADE Server Class Reference > CARenderingStyle
new to Analytica 5.0
property bool DateTimeAsReal
Determines whether a date-time number is returned as a Date number or as a real number. When it is returned as a real-number, the numeric value is the number of days since the date origin, either 1-Jan-1904 (if the Use Excel date origin is off) or 1-Jan-1900 (if the Use Excel date origin is on).
The date origin preference is stored in the system variable Sv__DateOriginOffset
, which is 0 when the origin is 1-Jan-1900 or -1462 when the Use Excel date origin preference is on.
Data type
Boolean
Access
read/write
Usage
The following is an example VBScript:
set ade = CreateObject("ADE5.CAEngine") ade.CreateModel("myModel") set caObj = ade.CreateObject("x","Variable") b = caObj.SetAttribute("Definition","6/2/2017 12:39pm") WScript.Echo caObj.Result caObj.RenderingStyle.DateTimeAsReal = true WScript.Echo caObj.Result
The output is:
6/2/2017 12:39:00 PM 41426.5270833333
See Also
Comments
Enable comment auto-refresher