Oops, try again. Your printed date and time do not seem to be in the right format: mm/dd/yyyy hh:mm:ss
but in the operator it say's this: 9-22-2016 18:28:32
it doesn't work... i didn't know why...
from datetime import datetime now = datetime.now() print ('%s-%s-%s %s:%s:%s') % (now.month, now.day, now.year, now.hour, now.minute, now.second)