title: Date Time Picker - Odd behavior between Chrome and Firefox
body: <p>I added a Date Time Picker to my registration form yesterday and was testing it in Firefox, because I can use Firebug easily with it, and it worked fine. Today when I attempted it in Chrome (my usual browser) I found that no account is made in my database using (though it still works in Firefox). I believe it is something due to the way the value is retrieved from the Date Time Picker. In FireFox the formatting allowing you to only enter in 00/00/2016 doesn't seem to work and it therefore is simply a string box, however in Chrome the formatting works fine. I assume that my Javascript retrieves the value fine as in Firefox it's a standard entry box, but in Chrome as it is a Date Time picker box I'm using the wrong code to retrieve the value.</p>
  
  <p>My question is, how can I make it work in both browsers at the same times? Or even better how can I fix the Date Time Picker in Firefox? Thanks in advance.</p>
  
  <p><a href="http://thomas-smyth.co.uk/register.php" rel="nofollow noreferrer">http://thomas-smyth.co.uk/register.php</a></p>
  
  <pre><code>                &lt;div class="form-group"&gt;
                      &lt;label&gt;Date of Birth&lt;/label&gt;
                      &lt;input class="form-control" type="date" id="dteDoB"/&gt;
                  &lt;/div&gt;
  </code></pre>
  
  <p>JS</p>
  
  <pre><code>function Register(){
      var Forename = $("#txtForename" ).val();
      var Surname = $("#txtSurname" ).val();
      var Password = $("#txtPassword").val();
      var PasswordR = $("#txtPasswordR").val();
      var DoB = $("#dteDoB").val();
      var Gender = $("#sltGender option:selected").val();
      var Response = grecaptcha.getResponse();
          $.post('functions/php/fncregister.php', {Forename: Forename, Surname: Surname, Password: Password, PasswordR: PasswordR, DoB: DoB, Gender: Gender, Response: Response}, function(data) {
              var returnValue = JSON.parse(data);
              if (returnValue['data'] == 0){
                  $('#mdlInfo').html('&lt;p&gt;Your account has been created under the username: &lt;strong&gt;&lt;span id="spnUsername"&gt;'+returnValue['username']+'&lt;/span&gt;&lt;/strong&gt;. You &lt;strong&gt;must&lt;/strong&gt; remember this as you will require it to log into your account.&lt;/p&gt;&lt;p&gt;Your account has also been added to a moderation que. &lt;strong&gt;You must wait until a member of staff activates your account!&lt;/strong&gt;&lt;/p&gt;');
                  $("#mdlRegister").modal("show");
              }
              else if (returnValue['data'] == 1){
                  $('#divError').html('&lt;p class="text-center text-danger bg-danger" id="pUPInc"&gt;Passwords did not match!&lt;/p&gt;');
              }
              else if (returnValue['data'] == 3){
                  $('#divError').html('&lt;p class="text-center text-danger bg-danger" id="pUPInc"&gt;An error occured when adding your details to the Database!&lt;/p&gt;');
              }
              else if (returnValue['data'] == 4){
                  $('#divError').html('&lt;p class="text-center text-danger bg-danger" id="pUPInc"&gt;I don\'t like Robots! Make sure you complete the reCaptcha test.&lt;/p&gt;');
              }
          });
  }
  </code></pre>