Originally posted by Omair Haq
Hello Everyone, I'm trying to populated in my Xlate 240 days from the date listed in MSH-7. So if MSH-7 is 202006121154; how can I add 240 days to this date and populated in another field in the message? I'm doing something like this inline code:
regsub -- {(\d{8})(\d+)} [lindex $xlateInVals 0] {\1 \2} dt
set xlateOutVals [list [clock format [clock scan
240 -base [clock scan $dt]] -format %Y%m%d%H%M%S]]