I'm having a problem when trying to create a new variable within python.
i = datetime.datetime.now()
tme = i.strftime('%d/%m/%Y')
print tme
This portion of the code creates a date variable (tme) in the format, 10/02/2015. It functions properly.
The second portion will create a expression variable.
exp = "DATE = '"tme"'"
print exp
This portion does not function properly. The problem occurs when I enter the tme variable.
The result I want python to output is a variable which prints:
DATE = '10/02/2015'