Current Date in Python


/ Published in: Python
Save to your folder(s)

Always gives me fits.


Copy this code and paste it in your HTML
  1. import datetime
  2. now = datetime.datetime.now()

URL: http://www.saltycrane.com/blog/2008/06/how-to-get-current-date-and-time-in/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.