title: PyQt: How to convert from Python to QDate style
body: <p>QtCore.QDate accepts three integers as arguments: year first, then month, then date. Example:</p>
  
  <pre><code>myDateEdit.setMaximumDate(QtCore.QDate(2015, 12, 28)) 
  </code></pre>
  
  <p>In order to "convert" QDate 'style' to Python use:</p>
  
  <pre><code>myPythonicDate=myDateEdit.date().toPyDate()
  print myPythonicDate
  '2014-04-17'
  </code></pre>
  
  <p>The question is: </p>
  
  <pre><code># With a variable:
  
  myPythonicDate='2014-04-17'
  </code></pre>
  
  <p>what syntax is used to declare QDate object... the following won't work:</p>
  
  <pre><code>myDateEdit.setDate(QtCore.QDate(myPythonicDate))
  </code></pre>