How to add number of days Count on XSLT 1

Mahesh Madhusanka 106 Reputation points

Hi Team,

Currently we have a requirement to add a number of date count on XSLT 1.0 date mapping, According to currently we have xpath value related to particular date and need to add additional days count on that, Could you please support on this, for your reference here with attached Current Source sample/ Current XSLT part and Expected output.

Source Xml -



Current Sample XSLT Line -

<CostInvoiceDate><xsl:value-of select="/invoice/InvoiceDate"/></CostInvoiceDate>  

Current Output


Expected Result after adding 20 days on exsisting Date (+20 days)

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,708 questions
0 comments No comments
{count} votes

Accepted answer
  1. Yitzhak Khabinsky 24,641 Reputation points

    Hi Mahesh,

    Please try the following solution for XSLT 1.0.

    <?xml version="1.0"?>


    Unfortunately, the forum doesn't allow me to add a legit and working XSLT.
    Both, directly or as attachment.


    Output XML

    <?xml version="1.0" encoding="utf-8"?>  

0 additional answers

Sort by: Most helpful