Skip to content

Instantly share code, notes, and snippets.

@juanmhidalgo
Created January 23, 2017 23:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juanmhidalgo/8d8e901e4892bedf81a4ecac2dcc94ac to your computer and use it in GitHub Desktop.
Save juanmhidalgo/8d8e901e4892bedf81a4ecac2dcc94ac to your computer and use it in GitHub Desktop.
Get days of month
def get_days_of_month(year, month):
import calendar
return calendar.monthrange(year,month)[1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment