title: Format datetime in XSLT
body: <p>I have a timestamp field (MSG_TIMESTAMP) that retrieved from DB would need to transform the format from 'YYYYMMDDHH24MISSFF3' to 'yyyyMMddHHmm'. Can I format using format-datetime fuction in XSLT file as per following?</p>
  
  <p>From </p>
  
  <pre><code>&lt;xsl:value-of select="translate(//results/result/function[@name='ADD-TO-RESPONSE']/resultItem/property[key='MSG_TIMESTAMP']/value, '[]', '')"/&gt;
  </code></pre>
  
  <p>To</p>
  
  <pre><code>&lt;xsl:value-of select="translate(//results/result/function[@name='ADD-TO-RESPONSE']/resultItem/property[key=format-date('MSG_TIMESTAMP']/value, '[Y0001]/[M01]/[D01]/[H01]/[m01]', '')"/&gt;
  </code></pre>