title: datetime to date format in python
body: <p>I Have a value of</p>
  
  <p><code>datetime.datetime(2015, 1, 28, 13, 53, 36)</code></p>
  
  <p>and I want it to be printed as string as </p>
  
  <p><code>Wednesday, January 28, 2015 13:53:36</code></p>
  
  <p>I tried to </p>
  
  <p><code>
  import datetime
  x = datetime.datetime(2015, 1, 28, 13, 53, 36)
  z = strptime(str(x), '%A, %B %d, %Y %H:%M:%S')
  </code></p>
  
  <p>but got:</p>
  
  <p><code>Traceback (most recent call last):
    File "&lt;pyshell#40&gt;", line 1, in &lt;module&gt;
      z = strptime(str(x), '%A, %B %d, %Y %H:%M:%S')
  NameError: name 'strptime' is not defined
  </code></p>
  
  <p>does anyone have an idea about this?</p>