SyntaxFix
Write A Post
Hire A Developer
Questions
Late answer, but you can also use:
import time ym = time.strftime("%Y-%m")