Re: simple language date offset

2020-12-16 Thread Daniel Johansson
Hi I used the solution you provided Claus with string concat, I just didnt see it. Thanks for The help! All the best /Daniel Den ons 7 okt. 2020 07:06Claus Ibsen skrev: > And btw since you use java dsl, then its all java code and you can use > string concat / string format to put in the ugly num

Re: simple language date offset

2020-10-06 Thread Claus Ibsen
And btw since you use java dsl, then its all java code and you can use string concat / string format to put in the ugly number from a variable or use Camel's property placeholders On Wed, Oct 7, 2020 at 7:05 AM Claus Ibsen wrote: > > Hi > > You cannot do that, the function only supports hours. >

Re: simple language date offset

2020-10-06 Thread Claus Ibsen
Hi You cannot do that, the function only supports hours. 1 month is also not a fixed value, e.g. each month varies in days. On Tue, Oct 6, 2020 at 2:23 PM Daniel Johansson wrote: > > Hi Users > > When i use the file component i want to filter on files that are older then > one month and only

simple language date offset

2020-10-06 Thread Daniel Johansson
Hi Users When i use the file component i want to filter on files that are older then one month and only process those files. I have been experimenting with: filterFile=$simple{file:modified} < ${date:now} and: .filter(header("CamelFileLastModified").isLessThan("${date:now} - $simple{header.ONE_MO