Building Your Event-Driven Architecture : Integration Server Built-In Services Reference : Date Folder : Summary of Elements in this Folder : pub.date:dateBuild
pub.date:dateBuild
WmPublic. Builds a date String using the specified pattern and the specified date elements.
Input Parameters
pattern
String Pattern representing the format in which you want the date returned. For pattern-string notation, see Pattern String Symbols. If you do not specify pattern, dateBuild returns null. If pattern contains a time zone and timezone is not specified, the default time zone of webMethods Integration Server is used.
year
String Optional. The year expressed in yyyy or yy format (for example, 01 or 2001). If you do not specify year or you specify an invalid value, dateBuild uses the current year.
month
String Optional. The month expressed as a number (for example, 1 for January, 2 for February). If you do not specify month or you specify an invalid value, dateBuild uses the current month.
dayofmonth
String Optional. The day of the month expressed as a number (for example, 1 for the first day of the month, 2 for the second day of the month). If you do not specify dayofmonth or you specify an invalid value, dateBuild uses the current day.
timezone
String Optional. Time zone in which you want the output date and time expressed. Specify a time zone code as shown in Time Zones (for example, EST for Eastern Standard Time).
If you do not specify timezone, the value of the server's "user timezone" property is used. If this property has not been set, 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.
If locale is not specified, Integration Server uses the locale from the session used by the client that invoked the service.
Output Parameters
value
String The date specified by year, month, and dayofmonth, in the format of pattern.
Copyright © 2016 - 2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback