Creates a Date from a year and day of year
the year
the day of the calendar year
if the year or day of year are invalid