The pub.date:getCurrentDateString accepts three parameters: pattern, timezone and locale.
If you need a numeric timezone offset in your XML schema dateTime in the format of [+|-]hh:mm you will need to start with a “pattern” of yyyy-MM-dd’T’HH:mm:ss.SSSZ and then write some extra code to insert a colon character “:” between the offset hours digits and offset minutes digits.
If you want to use the “trailing Z” form of the XML schema dateTime, you can use the pattern yyyy-MM-dd’T’HH:mm:ss.SSS’Z’.
Note: Be sure to use a capital “H” to represent the hours position. If you use a lower case “h” for hours, you will only be able to represent times prior to 1:00 PM correctly.
Mark
#webMethods#Integration-Server-and-ESB#Flow-and-Java-services