inString | String Date/time that you want to convert.
| ||
currentPattern | String Pattern string that describes the format of inString. For pattern-string notation, see the “Pattern String Symbols” section. | ||
newPattern | String Pattern string that describes the format in which you want inString returned. For pattern-string syntax, see the “Pattern String Symbols” section. | ||
locale | String Optional. Locale in which the date is to be expressed. For example, if locale is en (for English), the pattern EEE d MMM yyyy will produce Friday 23 August 2002, and the locale of fr (for French) will produce vendredi 23 août 2002. | ||
lenient | String Optional. A flag indicating whether an exception will appear if the inString value does not adhere to the format specified in currentPattern parameter. Set to: true to perform a lenient check. This is the default. In a lenient check, if the format of the date specified in the inString parameter does not match the format specified in the currentPattern parameter, the date in the format specified in the currentPattern parameter will be interpreted and returned. If the interpretation is incorrect, the service will return an invalid date. false to perform a strict check. In a strict check, an exception will appear if the format of the date specified in the inString parameter does not match the format specified in the currentPattern parameter. |
value | String The date/time given by inString, in the format of newPattern. |