title: AttributeError: 'str' object has no attribute 'strftime'
body: <p>I am using the following code to use the date in a specific format and running into following error..how to put date in m/d/y format?</p>
  
  <pre><code>from datetime import datetime, date
  
  def main ():
      cr_date = '2013-10-31 18:23:29.000227'
      crrdate = cr_date.strftime(cr_date,"%m/%d/%Y")
  
  if __name__ == '__main__':
      main()
  </code></pre>
  
  <p>Error:-</p>
  
  <pre><code>AttributeError: 'str' object has no attribute 'strftime'
  </code></pre>