How do we test whether a date is within 180 days from today in xslt in datapower

前端 未结 3 797
生来不讨喜
生来不讨喜 2020-12-12 04:39

I am writing an xslt for datapower and in that I am getting a date(Payment Date).I have to check whether that date(Paymentt Date) is within 180 days of current date

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-12 05:07

    IBM Datapower provides extension to existing EXSLT function. There is a function called 'difference' with following signature.

    difference() Returns the duration between the first date and the second date. Syntax date:difference(start-dateTime, end-dateTime)

    You can utilize this function to find out the date-difference. For more information about extension function available in datapower see below link. Go to Chapter 5 and look for functions for manipulating 'date time'.

    http://pic.dhe.ibm.com/infocenter/wsdatap/v3r8m1/topic/xm70/ExtensionFunctions.pdf

    -Ajitabh

提交回复
热议问题