AnsweredAssumed Answered

Date format that validates with and without miliseconds

Question asked by Yianni on Oct 26, 2016
Latest reply on Oct 26, 2016 by Ramya_Nakkapalle

We have a XML profile with date elements. The dates received most of the time include the miliseconds but some times don't, i.e. 2016-10-26T18:06:28Z or 2016-10-26T18:06:28.64Z.


Using either of the formats yyyy-MM-dd'T'HH:mm:ss.SSS'Z', yyyy-MM-dd'T'HH:mm:ss.S'Z', yyyy-MM-dd'T'HH:mm:ss'Z' will fail depending if the recived data has or doesn't have miliseconds.


Is there a date format that can be set in a profile that will accept both dates?