- This topic has 4 replies, 4 voices, and was last updated 10 years, 8 months ago by .
-
Topic
-
I am trying to write a Xlate file that brings in a VRL and outputs an HL7 message. I have most of it working except for a piece of data I need to format. In that field a date like “1/1/2013 12:00 AM” is coming in and I need to change it to “20130101” without the time piece. I really don’t understand why this bit of code is not working. In the testing tool I get an error “Expected integer but got “1/1/2013” What am I doing wrong? Code:
set var [lindex $xlateInVals 0]
set part [string range $var 0 [expr {[string first ” ” $var] -1 }]]
set xlateOutVals [clock format $part -format %Y%m%d]
Thank you.
Viewing 3 reply threads
Viewing 3 reply threads
- The forum ‘Cloverleaf’ is closed to new topics and replies.