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

Return whether `localDate` and `offset` form a valid `DateTz`&period;

== Synopsis

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

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

== Description

Return `true` if the specified `localDate` and the specified time zone `offset` represent a valid `DateTz` value, and `false` otherwise&period; A `localDate` and `offset` represent a valid `DateTz` value if `offset` is in the range `( &hyphen;1440 &period;&period; 1440 )`&period; Note that a `true` result from this function does not guarantee that `offset` corresponds to any geographical or historical time zone&period; Also note that a `true` result from this function does not guarantee that `localDate` itself is a valid `Date` object&period;

== Return Value

`true` if `localDate` and `offset` form a valid `DateTz`, and `false` otherwise

== Parameters

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


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