Hey can someone help me, my program has to do with dates, and asks the user to input a date on or after 1/1/1800, take that date and compare these statistics to my birthday(1/20/84)

If the year is a leapyear

how many days the month in the dates have

one day prior and after the dates

----I got all that covered---

***all i need help with is how to output what number out of 365 days of the year is that day in that year. (taking in part if that year is a leapyear or not)

if you can please help!!!

Thanx