infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Read Only Archives
Cloverleaf
Cloverleaf
tcl to strip milliseconds off time
System
Originally posted by Sandi Meyers
After much investigation i found the datecopyopt doesn't always work. Does anyone have a simple tcl proc they would be willing to share with me that would strip the mili seconds off a date/time field?
Find more posts tagged with
Clovertech
Comments
Russ Ross
With regards to datecopyopt not always working, I discovered issues with date/time percision when going from Cloverlef 5.2 to 5.6.
In the older version of Cloverleaf percision is turned on by default and in the new version of cloverleaf it is turned off.
That caused me to have to remediate my date/time procs to turn on percision to have the desired outcome like before.
Your case might be fixable by simply modifing your HL7 variant to be short enough in length to truncate off the unwanted milliseconds, assuming it is the last 2 characters of the date/time field you want to send outbound.
If that isn't the case then please post a sample of the date/time string coming in and the desired date/time string going out.
If you need a more surgical solution here is one of our XLT procs that grabs out the desired part of a string that might apply.
It is call xlt_substring
################################################################################
# Name: ################################################################################
# Name: