title: python datetime gets object has no attribute today error
body: <p>I have the following 2 different datetime uses:</p>
  
  <pre><code>date=request.GET.get('date','')
      if date:
          date = datetime.strptime(date, "%m/%d/%Y")
          print date
      else:
          date = datetime.date.today()
  </code></pre>
  
  <p>It seems the imports needed are:</p>
  
  <pre><code>from datetime import datetime
  date = datetime.strptime(date, "%m/%d/%Y")
  </code></pre>
  
  <p>and </p>
  
  <pre><code>import datetime
  date = datetime.date.today()
  </code></pre>
  
  <p>I can't have both:</p>
  
  <pre><code>from datetime import datetime
  import datetime
  </code></pre>
  
  <p>or one overrides the other.</p>
  
  <p>If I have one, I get the error:
   object has no attribute today</p>
  
  <p>How can I use both these datetime functions?</p>