Integration Server 10.3 | Built-In Services Reference Guide | Date Folder | Summary of Elements in this Folder | pub.date:calculateDateDifference
 
pub.date:calculateDateDifference
WmPublic. Calculates the difference between two dates and returns the result as seconds, minutes, hours, and days.
Input Parameters
startDate
String Starting date and time.
endDate
String Ending date and time.
startDatePattern
String Format in which the startDate parameter is to be specified (for example, yyyyMMdd HH:mm:ss.SSS). For pattern-string notation, see Pattern String Symbols.
endDatePattern
String Format in which the endDate parameter is to be specified (for example, yyyyMMdd HH:mm:ss.SSS). For pattern-string notation, see Pattern String Symbols.
Output Parameters
dateDifferenceSeconds
String The difference between the startingDateTime and endingDateTime, truncated to the nearest whole number of seconds.
dateDifferenceMinutes
String The difference between the startingDateTime and endingDateTime, truncated to the nearest whole number of minutes.
dateDifferenceHours
String The difference between the startingDateTime and endingDateTime, truncated to the nearest whole number of hours.
dateDifferenceDays
String The difference between the startingDateTime and endingDateTime, truncated to the nearest whole number of days.
Usage Notes
Each output value represents the same date difference, but in a different scale. Do not add these values together. Make sure your subsequent flow steps use the correct output, depending on the scale required.