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

Encode a date with time zone in ISO 8601 form to `streamBuf`&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& value,
    xref:BloombergLP/balber/BerEncoderOptions.adoc[BerEncoderOptions] const* options);
----

== Description

Return 0 on success and a non&hyphen;zero value otherwise&period; 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&period;

== Return Value

0 on success, and a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *streamBuf*
| output stream buffer
| *value*
| value to encode
| *options*
| encoder options (0 for defaults)
|===


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