pythondatejulian-date

How to convert Year and Day of Year to Date?


I have a year value and a day of year and would like to convert to a date (day/month/year).


Solution

  • datetime.datetime(year, 1, 1) + datetime.timedelta(days - 1)