title: Use JavaScript to convert a date string with timezone to a date object in local time
body: <p>The format of my date string looks like this: <code>yyyy-MM-ddTHH:mm:ss-0Z00</code></p>
  
  <p><strong>Example 1</strong>: <code>2010-03-05T07:03:51-0800</code></p>
  
  <p><strong>Example 2</strong>: <code>2010-07-01T20:23:00-0700</code></p>
  
  <p>I need to create a date object using these date strings. <code>new Date()</code> does not work on this string.
  Please help me convert these date strings into a date objects with the local timezone.</p>
  
  <p>Thank you!</p>
  
  <p>Edit: I am using this in Pentaho Data Integration 4.3.0.</p>