Description
Creates a string with the current date/time in a given dateTimePattern format.
Parameter |
Value |
---|---|
dateTimePattern |
Java date time pattern, see DateTimeFormatter in the Java SDK documentation for a detailed description. |
Return value
The returned values are the Date and Time as a String, in a dateTimePattern defined format.
Example:
<result>
<xsl:value-of select='utiapi:getCurrentDate("dd.MM.yyyy hh:mm:ss")' />
</result>
Description
Transforms a date/time string from a source format to a target format.
Parameter |
Value |
---|---|
sourceDateTime |
String with date and time. |
sourcePattern |
Java date time pattern that matches the sourceDateTime parameter, see DateTimeFormatter in the Java SDK documentation for a detailed description. |
targetPattern |
Java date time pattern for the output string, see DateTimeFormatter in the Java SDK documentation for a detailed description. |
Return value
The returned values are the Date and Time as String, in a dateTimePattern defined format.
Example:
<result>
<xsl:value-of select='utiapi:transformDateToMilliseconds("09.01.2017 10:05:33", "dd.MM.yyyy hh:mm:ss")' />
</result>
Description
Transforms a date/time string to the number of milliseconds since 01.01.1970.
Parameter |
Value |
---|---|
sourceDateTime |
String with date and time. |
sourcePattern |
Java date time pattern that matches the parameter sourceDateTime, see DateTimeFormatter in the Java SDK documentation for a detailed description. |
Return value
The returned value is a String with the number of milliseconds since 01.01.1970.
Example:
<result>
<xsl:value-of select='utiapi:transformDateToMilliseconds("09.01.2017 10:05:33", "dd.MM.yyyy hh:mm:ss")' />
</result>