title: How to obtain the day of the week in a 3 letter format from a datetime object in python?
body: <p>I am working on a script were I must work with datetime objects in Python. At some point I have one of those objects and I need to get the day of the week (which is a number value) in a 3-letter format (i.e. Tue, Wed, etc.). Here is a brief sample of the code, in dateMatch.group() all I am doing is getting pieces of a string obtained via regex matching.</p>
  
  <pre><code>from datetime import datetime
  
  day = dateMatch.group(2)
  month = dateMatch.group(3)
  year = dateMatch.group(4)
  hour = dateMatch.group(5)
  minute = dateMatch.group(6)
  second = dateMatch.group(7)
  
  tweetDate = datetime(int(year), months[month], int(day), int(hour), int(minute), int(second))
  </code></pre>
  
  <p>From that date time object I get a numerical day value (i.e. 18) and I need to convert it to (i.e. Tue).</p>
  
  <p>Thanks!</p>