Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python datetime last day of month

>>import calendar
>>year, month = 2016, 12
>>calendar.monthrange(year, month)[1]
31
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #datetime #day #month
ADD COMMENT
Topic
Name
7+2 =