title: Airflow Use execution date for logic within DAG
body: <p>Is it possible to access the execution date within the DAG outside of an Operator?  I need to use the execution date for conditional logic?  If the execution date is the 1st of the month then I need build a dictionary with certain values, else if its not the 1st of the month I need to build the dictionary with other values.  The dictionary is a parameter to the SnowflakeOperator.</p>
  
  <p>I pulled the idea when reading a guide on <a href="https://www.astronomer.io/guides/templating/" rel="nofollow noreferrer">Astronomer's website</a>.</p>
  
  <pre><code>default_args = {
      "owner": "&lt;my_name&gt;",
      "depends_on_past": False,
      "start_date": datetime(2020, 3, 2),
      "email": ['&lt;my_email&gt;'],
      "email_on_failure": True,   
      "retries": 0
  }
  
  
  dag = DAG(
      dag_id="ETL Dag",
      default_args=default_args,
      schedule_interval="0 18 * * *",
      catchup=True,
      max_active_runs=1
  )
  
  with dag:
      ymd = '{{ ds_nodash }}'
      # Use ymd to determine if 1st or not
      ...
  </code></pre>