title: adding a php date into a JS function not working when adding additional years
body: <p>The following is working fine for PHP and JS ($end is echoed successfuly):</p>
  
  <p>PHP code</p>
  
  <pre><code>$end = date('Y/m/d H:i:s');
  </code></pre>
  
  <p>JS code :</p>
  
  <pre><code>var acountDownDate = new Date("&lt;?php echo $end; ?&gt;").getTime();
  </code></pre>
  
  <p>I'm trying to add 2 years to the php code as follows :</p>
  
  <pre><code>$end = date('Y/m/d H:i:s', strtotime('+2 years'));
  </code></pre>
  
  <p>but the JS code is not working in this case. How can I fix this ?</p>