How exactly should the code look like if I want to receive only the date in EET-format (09.10.2016) by using datetime module in python 3.4.3 IDE?
It works with:
from datetime import datetime
sa = datetime.now ()
print (sa.day, sa.month, sa.year)
but the result is 09 10 2016 In this case there are missing the two dots between the day.month.year
I am trying with:
from datetime import datetime
sa = datetime.now ()
print '%s/%s/%s' % (sa.day, sa.month, sa.year)
in hope to change the dots with slashes, but receiving 'syntax error'
Why?