[#BloombergLP-balber-BerUtil_DateImpUtil-putDateTzValue]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balber.adoc[balber]::xref:BloombergLP/balber/BerUtil_DateImpUtil.adoc[BerUtil&lowbar;DateImpUtil]::putDateTzValue
:relfileprefix: ../../../
:mrdocs:

Write a representation of the specified `value` date and time zone to the output sequence of the specified `streamBuf` according to the specified `options`&period; If `options` is 0, the default set of options is used&period; Return 0 on success, and a non&hyphen;zero value otherwise&period; This operation succeeds if all bytes in the representation of the `value` are written to the output sequence of the `streamBuf` without the write position becoming unavailable&period; See the class documentation for a description of the default options&period; See the package&hyphen;level documentation of &lcub;`balber`&rcub; for a description of the decision procedure used to select an encoding format for the `value`&period;

== Synopsis

Declared in `&lt;balber&lowbar;berutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
putDateTzValue(
    std::streambuf* streamBuf,
    xref:BloombergLP/bdlt/DateTz.adoc[bdlt::DateTz] const& date,
    xref:BloombergLP/balber/BerEncoderOptions.adoc[BerEncoderOptions] const* options);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
