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 www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #week #datetime #python
ADD COMMENT
Topic
Name
2+6 =