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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to add days in a date

Hi,
I am new to talend and figuring out how to add 10 days to a date coming from the source in Tmap.
Labels (2)
3 Replies
Anonymous
Not applicable
Author

Hello Sheffy Gupta
what are your really expected result? Can you take an example?
Best regards

shong
Anonymous
Not applicable
Author

Hi,
you have to convert your date in a Calender. You can found some more information and examples here:
Java API
Examples
Bye
Volker
Anonymous
Not applicable
Author

Hello,
You can create this routine :

public static java.util.Date add_a_day(java.util.Date ref_date) {

java.util.Calendar cal1 = java.util.Calendar.getInstance();
cal1.setTime(ref_date);
java.util.Date date_out;
cal1.add(java.util.Calendar.DAY_OF_MONTH, 10);
date_out = cal1.getTime();
return date_out ;

}
}

José