{% macro get_time(article, date) -%} {% set datetime = date|strftime('%Y-%m-%d') %} {%- endmacro %}