MongoDB C++, How to add ISODate value when inserting
Thanks Styvane, I found it out how!
value Value = document{}<<"Key" <<"Value"<<"Date" <<bsoncxx::types::b_date(std::chrono::system_clock::now())<<finalize;cxxClient["db"]["collection"].insert_one(Value.view());