I have a string \"2012.11.07\" in python. I need to convert it to date object and then get an integer value of day of year and also Julian day
\"2012.11.07\"
To simplify the initial steps of abarnert's answer:
from dateutil import parser s = '2012.11.07' dt = parser.parse(s)
then apply the rest of abanert's answer.