title: Format the Date in YYYY-MM-DD format in XSLT
body: <p>I would like to transform the XML data for the date in <code>YYYY-MM-DD</code> format. Here is the piece of code I wrote </p>
  
  <pre><code>&lt;xsl:variable name="Formatted_Date" select="format-date(wd:continuous_service_date,'[Y0001]-[M01]-[D01]')"/&gt;
  &lt;xsl:value-of select="substring($Formatted_Date,1,10)"/&gt;`
  </code></pre>
  
  <p>But still its output is <code>MM/DD/YYYY</code>.<br>
  How do I do this in XSLT? </p>