Hello guys,

I have a little situation that involves date calculation.

Lets say the given date is from January 5, 2009 to March 23, 2009

How can i calculate that from January 5 to January 31 is 27 days(include Jan 5) and
from Feb 1 to feb 28 is 28 days and
from march 1 to march 23 is 23 days???

Sorry but i'm a little confused and still more to learn


Thanks alot and more power!