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
i got the same problem so tried so many things but finally this is the solution.
import time print (time.strftime("%d/%m/%Y"))