I\'m working with the Azure REST API and they are using this to create the request body for table storage:
DateTime.UtcNow.ToString(\"o\")
Boost has a library for this.
I.e. posix_time has the from_iso_string() and to_iso_string() functions.
from_iso_string()
to_iso_string()