I have an idea, which is to take the remainder... divide by 365, the remainder Y1, then first take the remainder of Y1 divided by 4 (for leap years) to see how many leap years there are, and subtract several 1s from Y1 to get Y2. Then convert Y2 into months and days... (Haha, still execute is quite lazy)
