set dt_time $xlateInVals
set xlateOutVals [clock format [clock scan $dt_time] -format %Y%m%d]
While doing some testing a test patient with a birthday of 1/1/1901 caused the translation to fail. When I ran it through the testing tool I got the following.
MESSAGE 1
Tcl callout error
erroCode: NONE
errorInfo:
unable to convert date-time string “1/1/1901”
while executing
“clock scan $dt_time”
What is the issue here? Is there a limitation in the TCL clock command or an issue with the logic?
I change the birthdate to 1/1/1961 and it worked as expected.