Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Date Function

I have a 'create_date' field and have to find if my create date is 30 months older than current date and also calculate how many days left until its 36 months old.How do I achieve that?

1 Solution

Accepted Solutions
nagaiank
Specialist III
Specialist III

Today() > AddMonths(create_date,30)  will return true (-1) if create_date is older than 30 months

AddMonths(create_date,36) - Today()  will return number of days left until 36 months

View solution in original post

1 Reply
nagaiank
Specialist III
Specialist III

Today() > AddMonths(create_date,30)  will return true (-1) if create_date is older than 30 months

AddMonths(create_date,36) - Today()  will return number of days left until 36 months