title: Typescript convert object string to date format mm/dd/yyyy
body: <p>I have a large array of different objects. They are strings and they come in from the api looking as so</p>
  
  <pre><code>const data =   [
        {
          id: 1,
          fruit: “apple”,
          createdOn: "2016-09-02T23:00:00.000Z",
          submittedDate: "2016-09-11T23:00:00.000Z”
        },
        {
          id: 2,
          fruit: “banana”,
          createdOn: "2016-09-11T23:00:00.000Z”,
          submittedDate: "2016-09-11T23:00:00.000Z”
        },
        {
          id: 3,
          fruit: “cherry”,
          createdOn: "2016-09-13T23:00:00.000Z",
          submittedDate: "2016-09-11T23:00:00.000Z”
  
        },
      ]
   this.gridData = data
  </code></pre>
  
  <p>I assign this object array to a grid that parses out the data. Before I send it to the grid how can I convert these string dates to the format mm/dd/yyyy?</p>
  
  <p>EDIT: So I could have an array of data that has datefields that are created dynamically. Currently in my example I gave you the date field names(createdOn, submittedDate), however I could have an array where I do not know what the field names are. </p>
  
  <p>We do have a way that we can identify these fields as our naming convention requires all date fields to end with "Dt". So since I know a field will be a date based on the string of "Dt" how can I changed the data dynamically? </p>