2024 Jun 12 4:49 PM - edited 2024 Jun 12 5:29 PM
Hi there,
I'm trying to add 1 day to a date that's in an Exchange Property, but it keeps erroring.
My understanding was that the following syntax would work:
${date:property.CamelCreatedTimestamp+24h}
But when I try it as follows:
It returns this error:
java.lang.IllegalArgumentException - Command not supported for dateExpression: property.date_in
Any idea how I can do this using Camel? Please note: I can't use 'date:now' which will give me the current date - I need to work with the date that's fed in from a property.
(I know I can use Groovy for the calculation, but I'm trying to keep it simple)
Many thanks,
Alan
Request clarification before answering.
This option cannot be used unless property.date_in is of type java.util.Date. The manner in which it is declared means it is going to be of type java.lang.String.
Regards,
Ryan Crosby
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
33 | |
22 | |
17 | |
8 | |
7 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.