title: new Date(date).getTime(); to read time in d/m/y format
body: <p>EDIT:
  I created an example of what I am trying to do: <a href="http://plnkr.co/edit/HvItQP2uDooaMgK7GRQe?p=preview" rel="nofollow noreferrer">http://plnkr.co/edit/HvItQP2uDooaMgK7GRQe?p=preview</a></p>
  
  <p>There are several problems with it. </p>
  
  <ol>
  <li><p>It does not work in FF (on MAC). No errors that I can see.</p></li>
  <li><p>In chrome after selecting 11-04-17 to 17-04-17 It still shows rows with 30/03/2017</p></li>
  </ol>
  
  <p>I really appreciate everyone's help and again please keep in mind I just started with JS last week. I can read the code and (possibly) understand the logic, but I am not on the level where I can clearly see how to implement it.</p>
  
  <hr>
  
  <p>I am using datatables to sort some basic data by dates. There was an excellent example <a href="http://plnkr.co/edit/mdeEYoZtnvpfHCdtSxDP?p=preview" rel="nofollow noreferrer">here:</a> that I copied. The example dates are in mm/dd/yyyy format.</p>
  
  <p>I need it to run in dd/mm/yyyy. When I switch the dates in the example to the format I need it no longer works.</p>
  
  <p>I am very new to JS so I imagine this is the part that does the magic:</p>
  
  <pre><code> minDateFilter = new Date(date).getTime();
  </code></pre>
  
  <p>minDateFilter grabs the data in the input, and .getTime() converts it to seconds from 1970. I googled around if I can get it to start with day something like 
  .getTime(dateFormat: "dd-mm-yyyy") but no luck yet.</p>
  
  <p>If anyone could help me out here I'd appreciate it. I can always use a hidden field but rather not. </p>
  
  <p>Thank you</p>