The Python Oracle

Getting today's date in YYYY-MM-DD in Python?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game 2 Looping

--

Chapters
00:00 Question
00:22 Accepted answer (Score 1395)
00:48 Answer 2 (Score 215)
01:06 Answer 3 (Score 85)
01:34 Answer 4 (Score 68)
01:48 Thank you

--

Full question
https://stackoverflow.com/questions/3249...

Accepted answer links:
[strftime]: http://strftime.org/

Answer 2 links:
[datetime.date.today()]: https://docs.python.org/library/datetime...
[datetime.date]: https://docs.python.org/library/datetime...

Answer 3 links:
[isoformat()]: https://docs.python.org/3/library/dateti...
[datetime]: https://docs.python.org/3/library/dateti...
[ISO 8601]: https://en.wikipedia.org/wiki/ISO_8601

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #datetime #pythondatetime

#avk47