def now(format_string):
from datetime import datetime<EOL>from django.utils.dateformat import DateFormat<EOL>return DateFormat(datetime.now()).format(self.format_string)<EOL>
Displays the date, formatted according to the given string.

Uses the same format as PHP's ``date()`` function; see http://php.net/date
for all the possible values.

Sample usage::

    It is {% now "jS F Y H:i" %}