title: 'toLocaleDateString' is undefined in ejs template
body: <p>I am using ejs Html engine template with node.js.
  I inserted date.now() in mongodb and now I am fetching date from mongodb in to my view and changing date format with '.toLocaleDateString()'</p>
  
  <p>so, the error is showing i.e</p>
  
  <pre><code>'toLocaleDateString' is undefined
  </code></pre>
  
  <p>Can anyone know how to fix this issue. or any other for change the date format</p>