def date(dttm): return dttm.strftime('%Y-%m-%d') ######## # Config ######## # Automatically called once when the Blueprint is registered on the app.