Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python get how many days in current month

import calendar
import datetime
now = datetime.datetime.now()
print calendar.monthrange(now.year, now.month)[1]
29
 
PREVIOUS NEXT
Tagged: #python #days #current #month
ADD COMMENT
Topic
Name
8+3 =