[q-lang-users] related bug
Brought to you by:
agraef
From: <ed...@ri...> - 2007-08-16 01:43:04
|
Hello Albert.=0D =0D This bug is related to the one posted earlier.=0D =0D code:=0D =0D def Month =0D =3D dict ["01","JAN"; "02","FEB"; "03","MAR"; "04","APR";=0D "05","MAY"; "06","JUN"; "07","JUL"; "08","AUG";=0D "09","SEP"; "10","OCT"; "11","NOV"; "12","DEC"];=0D =0D // convert YYYY-MM-DD to DD-MON-YYYY=0D convertdate Date=0D where L =3D split "-" Date:=0D =3D " " if null L;=0D =3D sprintf "%2s-%3s-%4s" (L!2, Month!(L!1), L!0) otherwise;=0D =0D =0D =3D=3D> convertdate "1964-11-19"=0D sprintf "%2s-%3s-%4s" ("19",["1964","11","19"]!"11","1964")=0D =0D =0D ? Month mysteriously changed to ["1964","11","19"] which is really L.=0D =0D Eddie=0D =0D |