Get Current Date and Time function

The Get Current® Date and Time function returns the current date and time as a specific XML Schema data type.

About this task

The Get Current Date and Time function returns the current date and time (with the local timezone) as an XML Schema data type: xs:dateTime.

Parameter: none

Returns: dateTime

The current date and time as the XML Schema data type: xs:dateTime. For example, if this function is run on February 22, 2005, at 12:43 PM in the PST timezone (- 08:00) this function returns the following dateTime:

2005-02-22T12:43:51-08:00
Note: If this function is called twice in a map, it is not guaranteed that the same dateTime is returned. This function is not stable as defined by the W3C.



Feedback | Notices


Timestamp icon Last updated: Tuesday, 27 September 2016


https://www.ibm.com/support/knowledgecenter/en/SS3LC4_7.5.3/com.ibm.wci.doc/Get_Current_Date_and_Time_function.html