title: How to increment date and time in XSLT 2.0
body: <p>I have a following date scenario, in which i want to increment in date, But the date format is of as following: <strong>2015-05-03T00:00:00Z</strong>. I only want to increment in date of one day. So that if it reaches 31 then the month should be updated. I saw an <a href="https://stackoverflow.com/questions/30121009/how-to-increment-1-day-in-date-using-xslt">existing</a> question but the solution is not working on my scenario.</p>
  
  <p><strong>XML:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;rootElement&gt;
  
      &lt;TestDate&gt;2015-05-03T00:00:00Z&lt;/TestDate&gt;
  &lt;/rootElement&gt;
  </code></pre>
  
  <p><strong>XSLT:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
  &lt;xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform"   version="2.0"&gt;
  
  
      &lt;xsl:template match="rootElement"&gt;
        &lt;TransformDate&gt;
            &lt;xsl:value-of select="substring(TestDate,1,10)" /&gt;
        &lt;/TransformDate&gt;
      &lt;/xsl:template&gt;
  &lt;/xsl:transform&gt;
  </code></pre>
  
  <p><strong>Result:</strong></p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;TransformDate&gt;2015-05-03&lt;/TransformDate&gt;
  </code></pre>
  
  <p><strong>ExpectedResult:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;TransformDate&gt;2015-05-04T00:00:00Z&lt;/TransformDate&gt;
  </code></pre>