I would like a python datetime object to output (and use the result in django) like this:
Thu the 2nd at 4:30
The django.utils.dateformat has a function
format that takes two arguments, the first one being the date (a
datetime.datetime]] instance, where
datetime is the module in Python's standard library), the second one being the format string, and returns the resulting formatted string. The uppercase-
S format item (if part of the format string, of course) is the one that expands to the proper one of 'st', 'nd', 'rd' or 'th', depending on the day-of-month of the date in question.