title: How to convert string to date in mongodb function
body: <p>I have to return date from string(which is of format dd/mm/YYYY) in mongodb. My code :</p>
  
  <pre><code>db.system.js.save({
      _id:"testdate",
  value:function(stringDate){
          return new Date(Date.parseDate(stringDate,'d/m/Y'))
      }
  }) ;
  </code></pre>
  
  <p>I am getting exception as Date.parseDate is not a function. Is there any other way to convert string to date?</p>