Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

get week from datetime python

import datetime as dt
dt.datetime.strptime('2019-01-01', '%Y-%m-%d').isocalendar()[1]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #week #datetime #python
ADD COMMENT
Topic
Name
5+3 =