title: Can not extract year with DateTime::createFromFormat
body: <p>I'm trying to extract the year of a input date like</p>
  
  <pre><code>$start = $request-&gt;input('start');
  
  $refYear = DateTime::createFromFormat("Y-m-d H:i:s", $start)-&gt;format("Y");
  </code></pre>
  
  <p>But I'm having the error <code>Call to a member function format() on boolean</code> and i saw another answers but nothing result so far.</p>
  
  <p>Where start is defined as a input in my page</p>
  
  <pre><code>&lt;input id="start" type="text" name="start" class="date-type"
                  placeholder="dd-mm-aaaa"&gt;&lt;i class="fi-calendar" style="top: 2px;"&gt;&lt;/i&gt;
  </code></pre>
  
  <p>In my table the startDate column is a date time like '2017-10-26 00:00:00.000' and refyear is a int (2017).</p>