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

前端 未结 3 807
生来不讨喜
生来不讨喜 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:26

    DataPower Supports Date:Difference

    difference()

    Returns the duration between the first date and the second date. Syntax

    date:difference(start-dateTime, end-dateTime)

    You can pass current date as end-DateTime , date which wants to check as start-DateTime

    
    
    
        
        
        
            
        
            
        
    
    
    

提交回复
热议问题