its showing the following error messege -printed date and time do not seem to be in the right format: mm/dd/yyyy hh:mm:ss
pythonfrom datetime import datetime
Replace this line with your code.
now = datetime.now()
print '%s/%s/%s %s:%s:%s' % ( now.month, now.day, now.year,now.hour,now.minute,now.second)