I am trying to set a variable to equal today\'s date.
I looked this up and found a related article:
Set today date as default value in the model
Howe
pd.datetime.now().strftime("%d/%m/%Y")
this will give output as '11/02/2019'
you can use add time if you want
pd.datetime.now().strftime("%d/%m/%Y %I:%M:%S")
this will give output as '11/02/2019 11:08:26'
strftime formats