title: XSLT - How to insert current dateTime in a right way
body: <p>I am struggling to fix a problem - I tried to insert current date time in XSLT but I got error because of incorrect syntax. My XML file doesn't have date time therefore i need to insert current date time in XSLT file <em>(date="" with attribute)</em> - look below:</p>
  
  <p><strong>XSLT:</strong></p>
  
  <pre><code>&lt;TestList&gt;
    &lt;Header testCode="Test_3334"  testId="" date=""&gt;
      &lt;xsl:attribute name="Header/date"&gt;
          &lt;xsl:value-of  select="current-dateTime()"/&gt;
        &lt;/xsl:attribute&gt;
      &lt;Validation TestName="{Header/Validation/TestName}" TestSurname="{Header/Validation/Surname}" checksum="{Header/Validation/Checksum}" /&gt;
    &lt;/Header&gt;
    &lt;Tests&gt;
      &lt;xsl:apply-templates select="Tests/Test"/&gt;
    &lt;/Tests&gt;
  &lt;/TestList&gt;
  </code></pre>
  
  <p>Is there any way to format correct date time in XSLT. Maybe my code is wrong. Thanks for your help :)</p>