title: Sitemap lastmod date in Javascript
body: <p>I need to the date format that is shown in <code>&lt;lastmod&gt;&lt;/lastmod&gt;</code> tags in sitemap.xml. How can I achieve that?</p>
  
  <p>Output like:</p>
  
  <pre><code>&lt;lastmod&gt;2016-01-21EEST18:01:18+03:00&lt;/lastmod&gt;
  </code></pre>
  
  <p>Where 'EEST' is probably timezone offset.</p>
  
  <p>I have seen this question and the answers in php:</p>
  
  <p><a href="https://stackoverflow.com/questions/11780404/google-sitemap-date-format/11780462">Google Sitemap Date Format</a></p>
  
  <p>but don't know how to achieve it in Javascript,</p>
  
  <p>Thanks.</p>
  
  <p>EDIT: the question is not duplicate, since I need the correct time format in JavaScript for this.</p>