[Update: Format specifiers are not the same thing as format strings; a format specifier is a piece of a custom format string, where a format string is \
I was dealing with DateTimeOffset and unfortunately the "o" prints out "+0000" not "Z".
DateTimeOffset
So I ended up with:
dateTimeOffset.UtcDateTime.ToString("o")