I am writing a program that shows the current years sales from the beginning of the fiscal year to the current date, compared to the same date range of the year before.
My question is, what efforts do I need to take for leap year?
UPDATE:
OK they want it like I said (compare last year up to same date) but if today is non leap year and last year is and today is feb 28th compare to last year up to 29th. Or if today is Feb 29th compare to last year up to 28th.