title: Convert GMT date to timestamp
body: <p>I have a date formatted in this way:</p>
  
  <pre><code>$data = 'lun, 19 giu 2017 16:30:00 GMT';
  </code></pre>
  
  <p>What I need is to convert this date, first to timestamp and after to another format, that's my code:</p>
  
  <pre><code>$date = DateTime::createFromFormat(DateTime::RSS, $data);
  $timestamp_date = $date-&gt;getTimestamp();
  $postdate = date("Y-m-d H:i:s", $timestamp_date);
  </code></pre>
  
  <p>I get this error on the second line:</p>
  
  <pre><code>FATAL ERROR Uncaught Error: Call to a member function getTimestamp() on boolean in
  </code></pre>
  
  <p>I tried to change this value <code>DateTime::RSS</code> with many others but no results yet.</p>