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


#1

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?)


#2

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


#3

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.