sqlalchemy flask display year part of date in jinja code example Example: jinja2 datetime format {{ date_of_something.strftime('%Y-%m-%d') }}