Handling dates and times
To get a date object from a string use theto_datetimefilter:
To format a date using a string (like with the shell date command), use the “strftime” filter:
strftime takes an optional utc argument, defaulting to False, meaning times are in the local timezone: