title: The code does not work if there is a text box
body: <p>Please help with this code</p>
  <ol>
  <li>An example works well</li>
  </ol>
  <hr />
  <pre><code>date1 = new Date ,d0.innerHTML;
  date2 = new Date(&quot;2017/09/26 06:30 PM&quot;);
  </code></pre>
  <ol start="2">
  <li>When the date inside the text does not work</li>
  </ol>
  <hr />
  <pre><code>date1 = new Date ,d0.innerHTML;
  date2 = new Date ,T1.value;
  </code></pre>
  <p>How do I make this code work?</p>