0

I am still relatively new to Python and don't think I'm familiar/comfortable enough with my understanding of the datetime functions...
I want to take just the current month from the datetime function so I can use the number to send the string of the month (ex, datetime would give me 7 as the month, so I will tell it to output 'July') to another program as a shared variable but I cannot seem to figure out how to display just the month in Python. I got as far as using

datetime.date.today()

to get just the current year, month, and day but cannot seem to figure out how to narrow it down more.
Not sure if that was clear or not so please ask questions if you don't understand.

Thanks!

2
Contributors
1
Reply
3
Views
5 Years
Discussion Span
Last Post by griswolf
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.