You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by ychawla <pr...@yahoo.com> on 2012/05/09 05:35:19 UTC
Re: dynamically creating directory with current date in yyyyMMdd
format
Hi Mahesh,
You can try setting your file name with the dynamic format:
<camel:setHeader headerName="CamelFileName">
<camel:simple>${date:now:yyyyMMdd}/someFileName.xml</camel:simple>
</camel:setHeader>
This will create a folder with the dynamic date and then put
'someFileName.xml' inside of it. This should work in the Java DSL as well.
Thanks,
Yogesh
--
View this message in context: http://camel.465427.n5.nabble.com/dynamically-creating-directory-with-current-date-in-yyyyMMdd-format-tp5670997p5696406.html
Sent from the Camel - Users mailing list archive at Nabble.com.