[ 
https://issues.apache.org/jira/browse/AIRFLOW-4164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Trevor Burke closed AIRFLOW-4164.
---------------------------------
    Resolution: Fixed

I realized you can utilize `replace` method to then convert to iso format

> Add previous execution date in ISO format macro variable
> --------------------------------------------------------
>
>                 Key: AIRFLOW-4164
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-4164
>             Project: Apache Airflow
>          Issue Type: Improvement
>          Components: models
>    Affects Versions: 1.10.2
>            Reporter: Trevor Burke
>            Assignee: Trevor Burke
>            Priority: Minor
>
> It appears, to me, there isn't a macro default variable to access previous 
> execution date in ISO format, just simple '%Y-%m-%d' format. Adding in a 
> macro default variable of `prev_ds_iso` would require only four lines added, 
> none removed across three modules.
> If it's already possible to access a more precise version of \{{ prev_ds }} 
> I'm all ears! Happy to take this quick PR on though. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to