powered by
ydn2md(yr, dy)
On error, the function returns
m = d = -1
ymd2dn
# Find the month/day of days 155 and 255 in the year 2001 # Result: m=c(6,9) d=c(4,12), or June 4 and September 12 ydn2md(2001, c(155,255))
Run the code above in your browser using DataLab