Post

2 followers Follow
0
Avatar

Change create_at from String to Date in push delivery to MongoDB?

Is there a way to change the "created_at" fields from string to date types when pushing into MongoDB? Right now as a string, doing date comparisons on that field is difficult as strings. Any ideas on how we can get around this? (Ideally, without having to add a field to every document and converting from string to date type?)

john.mao

Official comment

Avatar

This feature has now been added. 

Adding the following output_param will ensure you have a proper date added to your interactions in MongoDB:

output_params.format=full_interaction_meta_date

You can see an example interaction formatted in this Gist. You can see the created_at date on line 123.

Jason D.
Comment actions Permalink

Please sign in to leave a comment.

2 comments

0
Avatar

I will raise this as a feature request with our Product Team - it certainly seems sensible, if it is possible. 

Jason D. 0 votes
Comment actions Permalink