from datetime import datetime now = datetime.now() print '%s/%s/%s' % (now.month, now.day, now.year) \: print '%s:%s:%s' % (now.hour, now.minute, now.second)
you need one
%s placeholders and then all 6 variables
oh Thank you so much
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.