title: QDateTime Conversion
body: <p>I need to convert the String variable to QDateTime format</p>
  
  <p>my code looks </p>
  
  <pre><code>QString date ="Thu Jun 18 2015";
  QDateTime tmp = QDateTime::fromString(date,"ddd MMM dd yyyy HH:mm:ss");
  </code></pre>
  
  <p>But the result is <code>Thu Jan 1 00:00:00 1970</code>. </p>
  
  <p>Later I have to convert this date in to foramt <code>yyyy-MM-dd HH:mm:ss</code>, so as a first step I have convert the string in to <code>QDateTime</code> then I have to convert to the final format, is there anything mistake with the above code?</p>
  
  <p>Any help will be appreciated.</p>
  
  <p>Thanks
  Haris </p>