bernie.obrigewitsch
-
Posts
12 -
Joined
-
Last visited
Community Answers
-
bernie.obrigewitsch's post in How do I use parametes to calculate a date 10 years back? was marked as the answer
I figured this out...
I created a parameter call ed 10yrdate, changed it to not use as a prompt. Than I used this code in the default expression.
new java.util.Date($P{BeginVisitDate}.getTime() - 3653L*24*60*60*1000) the 3563 is the amount of days to subtract.. I started with 366 x 10, and had to adjust it until I got the right date.