Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python get current month

Use:

from datetime import datetime
today = datetime.today()
datem = datetime(today.year, today.month, 1)
I assume you want the first of the month.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #current #month
ADD COMMENT
Topic
Name
6+1 =