Yeah. Converting the body to a String is a good way to guarantee that the conversion logic we're interested in will kick in.
Just for reference, have a look at the MongoDbConverters class. Cheers, Raúl. On 14 Mar 2016 18:52, "gramanero" <graman...@gmail.com> wrote: > Yes I can try that. To make sure I am on the same page is this what you are > asking for? > > *Route:* > /<convertBodyTo type="String" /> > <to > > uri="mongodb:mongoBean?database=PMA&collection=Elmah&writeResultAsHeader=true&operation=insert" > />/ > > *JSON to send:* > /{ "time" : { "$date" : "2016-02-19T17:37:57.673+0000" } }/ > > > Or do think we should not perform the convertBodyTo string? > > Thank you for the quick response! I seriously appreciate the attention. > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/How-to-insert-Date-String-as-date-in-MongoDB-tp5778310p5779043.html > Sent from the Camel - Users mailing list archive at Nabble.com. >