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 | Date | formatDate
 
formatDate
Formats a Date object as a string.
Input Parameters
date
java.util.Date Optional. Date/time that you want to convert.
pattern
String Pattern string that describes the format in which you want the date returned. For pattern-string notation, see the Pattern String Symbols section.
timezone
String Optional. Time zone in which you want the output date and time expressed. Specify a time zone code as shown in the Time Zones section, for example, EST for Eastern Standard Time.
If you do not specify timezone, the user's time zone is used, else GMT is used.
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.
Output Parameters
value
String The date/time given by date in the format specified by pattern.

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.