title: Converting different date formats to new Date() then seeing if date1 is between date2 and date3
body: <p>I have an html5 / javascript application where I read text files and create different arrays.</p>
  
  <p>For example: </p>
  
  <p>variables in my LDate array have values like this: 03/13/2016</p>
  
  <p>variables in my TDate array have values like this: 15 Feb 16-26 Mar 16</p>
  
  <p>When I am reading my text files, it would be easy to convert "03/13/2015" and "15 Feb 16-26 Mar 16" using</p>
  
  <pre><code>     var d = new Date(2016, 2, 13)
       var d1 = new Date(2016, 1, 16)
       var d2 = new Date(2016, 2, 26)
  </code></pre>
  
  <p>Then I want to see if d is between d1 and d2, so I thought about using:</p>
  
  <pre><code>    if (d.valueOf &gt; d1.valueOf &amp; d.valueOf &lt; d1.valueOf)
      {alert{"d is between d1 and d2")}
  </code></pre>
  
  <p>I did a quick test and this seemed to work.</p>
  
  <p>Is this a decent way to approach this problem?</p>
  
  <p>TIA</p>