Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
cancel
Showing results for 
Search instead for 
Did you mean: 
pauldamen
Partner - Creator II
Partner - Creator II

Create an end date by adding months

All,

I have a start date for contracts which looks like: day-month-year( ie 25-9-2014). I have another field which says the number of months the contract will last (ie 2). What I need is to create an end date in this example: 25-9-2014 + 2 months = 25-11-2014

If I make a calculation like: Date(Startdate) + #Contractmonths, it will add up 2 days instead of 2 months. I tried different formulas but I can't add up the number for months it will only do the days.

Hope you guys can help.

Regards,

Paul

1 Solution

Accepted Solutions
rubenmarin

Hi Paul, You can use addmonths function:

AddMonths(Startdate, #Contractmonths)

View solution in original post

4 Replies
rubenmarin

Hi Paul, You can use addmonths function:

AddMonths(Startdate, #Contractmonths)

pauldamen
Partner - Creator II
Partner - Creator II
Author

Thanks!!

CELAMBARASAN
Partner - Champion
Partner - Champion

Try AddMonths Function

AddMonths(Startdate, #Contractmonths)

crusader_
Partner - Specialist
Partner - Specialist

Hi Paul,

Try AddMonths() function.

AddMonths(Startdate,#Contractmonths)

Hope this helps.

Andrei