{%- macro simpledatetime(timestr) %} {% set t = timestr|str2dt %} {{ t.strftime('%Y-%m-%d %H:%M:%S') }} {% endmacro -%} {%- macro simpledate(timestr) %} {% set t = timestr|str2dt %} {{ t.strftime('%Y-%m-%d') }} {% endmacro -%}