title: Display the current date in a mm/dd/yyyy format in Python
body: <pre><code>from datetime import datetime
  current_time = datetime.now()
  
  print "%s-%s-%s" % (current_time.month, current_time.day current_time.year,)
  #Will print the current date in a mm/dd/yyyy format.
  
  input()
  </code></pre>
  
  <p>The code above is meant to print out the current date in a <code>mm/dd/yyyy</code> format in a command prompt. So for example if this actually worked it would open up a command prompt window that printed out; for example the current date as im writing this like this: <code>8-5-2017</code></p>
  
  <p>I keep getting this error when trying to run the module that the closing " in "<code>%s-%s-%s</code>" that it's invalid syntax. Is python 3 using something different from this or did I make a mistake?</p>