title: Python equivalent of PHP's date()
body: <p>For simple formats its easy to come up with equivalents</p>
  
  <p>PHP:</p>
  
  <pre class="lang-php prettyprint-override"><code>date("Y-m-d") === "2012-07-25";
  </code></pre>
  
  <p>Python:</p>
  
  <pre class="lang-py prettyprint-override"><code>date.strftime("%Y-%m-%d") == "2012-07-25"
  </code></pre>
  
  <p>But what is the Python equivalent of</p>
  
  <pre class="lang-php prettyprint-override"><code>date("jS F Y") === "25th July 2012";
  </code></pre>