JK

On Mon, 24 May 2004 15:13:13 +0200, "JK" <[EMAIL PROTECTED]> wrote:

>Peter
>
>My dates are stored as  DD/MM/[YY]YY - 27/03/2002 so I presume the syntax,
>set t=$zdt(val,9), will actually be,  set t=$zdt(val,4).
nope

the code I gave you works if the internal format is $h format

you need to convert your stored format to this first
eg
ClassMethod DisplayDate(val As %Integer) As %String [SqlProc]
{
  ste valH=$zdth(t,4)
  set t=$zdt(valH,9)
 quit $p(t," ")_" "_$p(t," ",3)
}

Peter


Reply via email to