Trading Networks 10.3 | Administering and Monitoring B2B Transactions | Trading Networks Built-In Services Reference | Util Folder | Summary of Elements in this Folder | wm.tn.util:stringToDate
 
wm.tn.util:stringToDate
Converts a java.lang.String object to a java.util. Date object, using the specified date pattern.
Input Parameters
string
String The String you want to convert to a java.util.Date object.
pattern
String The date formatting pattern to use when converting the String.
Output Parameters
value
Object The converted Date value.
Usage Notes
This service uses the java.text.SimpleDateFormat.parse method. If the value in the input variable string is unparsable using the date format supplied in the input variable pattern, this service will not throw an exception. Instead the service returns a null value in the output variable value. See the javadocs for java.text.SimpleDateFormat for a description of the pattern variable.