title: Moment.js "Invalid date"
body: <p>I just tried to make a text input with formatted date. It is working fine on Google Chrome, but when I run it on Mozilla Firefox (26.0) it says: <code>Invalid date</code>.</p>
  
  <p>You can see and run <a href="http://jsfiddle.net/MMm86" rel="noreferrer">my example</a> in both browsers and hopefully understand the problem.</p>
  
  <p>JS Code:</p>
  
  <pre><code>$( "#h_reg_date" ).datepicker();
  $("#h_reg_date").datepicker("option", "dateFormat", "yy-M-dd");
  
  $("#save_data").on("click", function(){
   var reg_date = $("#h_reg_date").val();
    console.log(reg_date);
    reg_date =  moment(reg_date).format("YYYY/MM/DD");
    console.log(reg_date);
    return;
  });
  </code></pre>
  
  <p>HTML:</p>
  
  <pre><code>&lt;input type="text" id="h_reg_date"class="abs" style="top:135px; left:150px;" size="10" readonly &gt;
  &lt;input type="button" id="save_data" class="abs" style="top:370px; left:-200px;" value="Add Data"&gt;
  </code></pre>
  
  <p>Is there any solution to this problem?</p>