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

Announcements
Now accepting applications for the Qlik Luminary and Partner Ambassador Programs: Apply by July 6!
cancel
Showing results for 
Search instead for 
Did you mean: 
vikasmahajan
MVP
MVP

Date Variables in input box

I have Variable v_Date 31-01-2015   & I want to show v_Date1   as  (v_date-30 days)

in input box .

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Try this:

=Date(addmonths(Date#(v_Date, 'DD-MM-YYYY'),-1),'DD-MM-YYYY')

View solution in original post

3 Replies
sunny_talwar
MVP
MVP

Try this:

=Date(addmonths(Date#(v_Date, 'DD-MM-YYYY'),-1),'DD-MM-YYYY')

sunny_talwar
MVP
MVP

Or this for 30 days:

=Date(Date#(v_Date, 'DD-MM-YYYY') - 30,'DD-MM-YYYY')

vikasmahajan
MVP
MVP
Author

thnx

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.