Created
April 8, 2014 15:28
-
-
Save salmoni/10142780 to your computer and use it in GitHub Desktop.
Get the date today. Returns something like 2013-10-14.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import datetime | |
def GetToday(): | |
now = datetime.date.today() | |
return now.strftime("%Y-%m-%d") | |
if __name__ == '__main__': | |
print GetToday() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment