title: How to display mongoose date in HTML5 input type date format (dd/mm/yyyy),
body: <p>I have a MongoDB schema like this </p>
  
  <pre><code>var Person = new Schema({
    "Name": { type: String, required: true },
    "DOB": {  type: Date, "default": Date.now  }
  });
  </code></pre>
  
  <p>And a new object is created( NodeJs using mongoose ODM)</p>
  
  <pre><code>{   
    "Name": "Dany",  
    "_id": "50ae0cb32c46b2901c000001",  
    "__v": 0,  
    "DOB": "2012-11-22T12:54:43.852Z"   
  }   
  </code></pre>
  
  <p>I can retrieve this object and DOB from it. What I want is: To convert this DOB into some suitable format which can be directly assign it in an HTML5 "date" input element.And this has to be rendered using jade and Handlebars.</p>
  
  <p>Similar to something like <code>var brthday = Person.DOB.tosome_suitable_form);</code> and then <code>&lt;input type="date" value="brthday"&gt;</code> or 
        (instead of html syntax jade and Handlebars syntax is required). How do I do this?</p>