I am using DateDiff to find the number of months. But I need to see how many months are in each year that a contract is valid - Here's an example of the results we're looking for:
A contract starts on 6/1/03 and ends on 6/30/05. How many months in '03, how many months in '04, how many months in '05.
Our result needs to be:
2003 - 7 months
2004 - 12 months
2005 - 6 months
I have a separate column for 2003, 2004, & 2005 so I need to narrow down the results by year for each column.
Any ideas on how to do this?
A contract starts on 6/1/03 and ends on 6/30/05. How many months in '03, how many months in '04, how many months in '05.
Our result needs to be:
2003 - 7 months
2004 - 12 months
2005 - 6 months
I have a separate column for 2003, 2004, & 2005 so I need to narrow down the results by year for each column.
Any ideas on how to do this?