title: How to get date object from moment.js after formatting it
body: <p>Using typescript, I am formatting my date with moment.js like this.</p>
  
  <pre><code>function getCreatedDate(objContainingDate: any): Date {
      // Following line does not work since it is returning string, 
      // I need formatted date object to return 
      return moment(objContainingDate.createdDate).format("L")
  }
  </code></pre>
  
  <p>The format method returns a string, how to convert it back to date object ?</p>