hi nishi,
I don't think there is any function which is required by you.
But there is a solution:
take start date as current date.
and end date = start date + no. of days.
now you get start date and end date.
There are many functions which export month and year.
what do you think?