Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python get first day of week from week number

>>> import datetime
>>> from dateutil.relativedelta import relativedelta

>>> week = 40
>>> year = 2019
>>> date = datetime.date(year,1,1)+relativedelta(weeks=+week)
>>> date
datetime.date(2019, 10, 8)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Python #day #week #week #number
ADD COMMENT
Topic
Name
3+2 =