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


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.


Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.