title: Not able to get Proper Date Time Format Using toLocaleDateString function in Mozilla Firefox
body: <p>I am trying for format Date Time based on Timezone and Locale of the user in javascript using following code. Which is running perfectly in chrome and giving desire output. But it is not working in Mozilla Firefox.</p>
  
  <p>Below is the code:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>    var a = new Date("2019-09-05T07:20:04.000+0000");
      var l = "en-US";
      var k = "America/Los_Angeles";
      console.log(a.toLocaleDateString(l, {
          timeZone: k,
          dateStyle: 'short',
          timeStyle: 'short'
      }));</code></pre>
  </div>
  </div>
  </p>
  
  <p>Output in Chrome (Correct) : 9/5/19, 12:20 AM</p>
  
  <p>Output in Firefox (Incorrect, missing time) : 9/5/2019</p>
  
  <p>As per the mozilla docs code is correct : <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat" rel="nofollow noreferrer">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat</a></p>