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\"
def JulianDate_to_date(y, jd): month = 1 while jd - calendar.monthrange(y,month)[1] > 0 and month <= 12: jd = jd - calendar.monthrange(y,month)[1] month += 1 date = datetime.date(y,month,jd).strftime("%m/%d/%Y") return date