title: PHP Countdown from Day Hour Minute Second
body: <p>Want to show a countdown of Days Left, Hour, Minute, Second.</p>
  
  <p>The time data comes in this format:</p>
  
  <p>startTime: "2017-02-17T13:51:13",</p>
  
  <p>I found a example script found on stack:</p>
  
  <pre><code>&lt;?php
   $now  = new DateTime();
   $ends = new DateTime('May 31, 2017, 11:59 pm'); 
   $left = $now-&gt;diff($ends);
  ?&gt;
  
  
  &lt;dd&gt;
  &lt;div class="timer_wrp"&gt;Remaining
      &lt;ul class="timer countdown"&gt;
          &lt;li&gt;&lt;i&gt;&lt;?php echo $left-&gt;format('%a'); ?&gt;&lt;/i&gt;Day&lt;/li&gt;
          &lt;li&gt;&lt;i&gt;&lt;?php echo $left-&gt;format('%h'); ?&gt;&lt;/i&gt;Hour&lt;/li&gt;
          &lt;li&gt;&lt;i&gt;&lt;?php echo $left-&gt;format('%i'); ?&gt;&lt;/i&gt;Min&lt;/li&gt;
          &lt;li&gt;&lt;i&gt;&lt;?php echo $left-&gt;format('%s'); ?&gt;&lt;/i&gt;Sec&lt;/li&gt;
      &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p></p>
  
  <p>The Date format is different, is there a easy way to use how its currently setup or would I have to change that into the example format? And do you see anything that maybe missing from this example? Thanks</p>