You need to call iOS obj-c to do that..
Download my attached files, unzip to your projects folder (leave them in their ObjCCalls folder). Add the contents to your project (drag into your “classes” folder in the project view in XCode.
Call with this line:
std::string datetime = ObjCCalls::MakeDateTimeString();