[#BloombergLP-bdlt-DateTz-setDateTz]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/DateTz.adoc[DateTz]::setDateTz
:relfileprefix: ../../../
:mrdocs:

Set this object&apos;s local date and time zone offset&period;

== Synopsis

Declared in `&lt;bdlt&lowbar;datetz&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
setDateTz(
    xref:BloombergLP/bdlt/Date.adoc[Date] const& localDate,
    int offset);
----

== Description

Set the local date and the time zone offset of this object to the specified `localDate` and `offset` values respectively&period; The behavior is undefined unless `offset` is in the range `( &hyphen;1440 &period;&period; 1440 )`&period; Note that this method provides no validation, and it is the user&apos;s responsibility to assure the consistency of the resulting value&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *localDate*
| local date value to set
| *offset*
| time zone offset from UTC in minutes
|===


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