Werner Riegler wrote:
> ##class(%Library.TimeStamp).LogicalToDisplay and so an
> 
> but Timestamp seems to have yyyy-mm-dd ... format and
> 
> Date has dd/mm/yyyy

Not if you use FORMAT=3.

]w $zdh("2004-07-12",3,,5,8,20,,,"")
59728

> set y = $EXTRACT(x,1,10)
> w ##class(%Library.Date).IsValidDT(y)
> does not work ???
Right.  It works on the logical value ($h-format), not a display value (yyyy-mm-dd).
A valid logical date is 0 to 2980013, or within whatever MINVAL and MAXVAL you defined 
for the property.

Reply via email to