How do you go in php from a nth day in the year to the date like:

getdatefromday(275, 2012) 

and it outputs a date (better if an object).

And I'd like to do the opposite too, like getdayoftheyear("21 oct 2012")

Edit
Report