in reply to Date Conversion: yyddd to yyyymmdd

Best way of getting YEAR-MONTH-DAY from YEAR-DAYOFYEAR ?