Days in Month

Get the number of days in a specific month.

Code

General
import calendar
return calendar.monthrange(year, month)[1]

Parameters

Year

Month (1-12)

Server

More Python Snippets