I'm trying to modify an Intralink 3.4 script to allow me to search for files created over a time period. I would like it set so that, whenever it runs, it will look at the previous seven days. The script as Intralink created it gave me the lines:
IL.addFilter( "Created On", "<=", new Object[]{new java.util.Date(1203351660000L) } ); // recorded step: 9
IL.addFilter( "Created On", ">", new Object[]{new java.util.Date(1202746860000L) } ); // recorded step: 10
I changed the first line to:
IL.addFilter( "Created On", "<=", new Object[]{new java.util.Date() } ); // recorded step: 9
and it now selects from the time that the script runs, but I cannot figure out how to set the second line to always be seven days (or 604800000 milliseconds) less than the first. Is there a Java function or something else to accomplish this?
IL.addFilter( "Created On", "<=", new Object[]{new java.util.Date(1203351660000L) } ); // recorded step: 9
IL.addFilter( "Created On", ">", new Object[]{new java.util.Date(1202746860000L) } ); // recorded step: 10
I changed the first line to:
IL.addFilter( "Created On", "<=", new Object[]{new java.util.Date() } ); // recorded step: 9
and it now selects from the time that the script runs, but I cannot figure out how to set the second line to always be seven days (or 604800000 milliseconds) less than the first. Is there a Java function or something else to accomplish this?