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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Get the month before the current month

Hi there,
I have the following code which I'm trying to use to rename a file in the tFTPPut component: "NEW-NAME-01-"+TalendDate.addDate(TalendDate.getDate("MMM-YY"),"MMM-YY",-1,"MM")+".txt"
However, the file name I get returned is NEW-NAME-01-Nov-13.txt; very strange. 
I want it to be like NEW-NAME-01-Oct-14.txt.
Thanks,
Facoda
Labels (2)
1 Reply
Jcs19
Creator II
Creator II

HI HI HI HI
It's 
"NEW-NAME-01-"+TalendDate.addDate(TalendDate.getDate("MMM-YY"),"MMM-yy",-1,"MM")+".txt"
not
"NEW-NAME-01-"+TalendDate.addDate(TalendDate.getDate("MMM-YY"),"MMM-YY",-1,"MM")+".txt"

I changed YY to yy