webMethods Integration Cloud and Cloud Deployment Documentation 5.6.0 | webMethods Integration Cloud | Integrations, Built-In Services, REST APIs, SOAP APIs, Doc Types, and Recipes | Built-In Services | String | isDate
 
isDate
Determines whether a string follows a specified date pattern.
Input Parameters
inString
String Optional. String to be checked for adherence to the specified date pattern.
pattern
String Date format for specifying the inString parameter (for example, yyyyMMdd HH:mm:ss.SSS).
For more information about the pattern strings that can be specified for the date, see the “Pattern String Symbols” section.
Output Parameters
isDate
String Indicates whether or not inString follows the specified date pattern.
*true indicates that inString follows the specified date pattern.
*false indicates that inString does not follow the specified date pattern.
The service returns false if inString is not specified.
Usage Notes
The service returns an error if both inString and pattern are not specified.
You can specify any random string (for example, 111212) as both inString and pattern. The service returns true if the same user-defined string is specified as both inString and pattern. This is because the java.text.SimpleDateFormat class parses the user-defined input string and pattern to a valid date when the particular input values are identical.

Copyright © 2014- 2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.