title: Fatal error: Uncaught exception 'Exception' with message 'DateTime::
body: <p>help fix this error</p>
  
  <blockquote>
    <p>Fatal error: Uncaught exception 'Exception' with message 'DateTime::_<em>construct() [datetime.--construct]: Failed to parse time string (--) at position 0 (-): Unexpected character' in Z:\home\plati\www\view.php:110 Stack trace: #0 Z:\home\plati\www\view.php(110): DateTime-></em>_construct('--') #1 {main} thrown in Z:\home\plati\www\view.php on line 110</p>
  </blockquote>
  
  <pre><code>$newday = $a['dayz'];
  $endmonth = $a['monthz'];
  $newyear = $a['yearz'];
  $date = new DateTime("$newyear-$endmonth-$newday");
  $date-&gt;modify('+8 day');
  $year = $date-&gt;format('Y');
  $month = $date-&gt;format('m');
  $day = $date-&gt;format('d');
  </code></pre>