[#BloombergLP-balber-BerUtil_Iso8601ImpUtil-putDatetimeValue] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balber.adoc[balber]::xref:BloombergLP/balber/BerUtil_Iso8601ImpUtil.adoc[BerUtil_Iso8601ImpUtil]::putDatetimeValue :relfileprefix: ../../../ :mrdocs: Write the ISO 8601 representation of the specified `value` to the output sequence of the specified `streamBuf`. If the specified `options` is 0, use 3 decimal places of fractional second precision, otherwise use the number of decimal places specified by the `datetimeFractionalSecondPrecision` attribute of the `options`. Return 0 on success and a non‐zero value otherwise. The operation succeeds if all bytes of the ISO 8601 representation of the `value` are written to the `streamBuf` without the write position becoming unavailable. == Synopsis Declared in `<balber_berutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int putDatetimeValue( std::streambuf* streamBuf, xref:BloombergLP/bdlt/Datetime.adoc[bdlt::Datetime] const& value, xref:BloombergLP/balber/BerEncoderOptions.adoc[BerEncoderOptions] const* options); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#