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

`isValid` overloads

== Synopses

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

Return `true` if `year` and `dayOfYear` form a valid `Date` value&period;


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

[.small]#xref:BloombergLP/bdlt/Date/isValid-06.adoc[_» more&period;&period;&period;_]#

Return `true` if `year`, `month`, and `day` form a valid `Date` value&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
bool
xref:BloombergLP/bdlt/Date/isValid-04.adoc[isValid](
    int year,
    int month,
    int day);
----

[.small]#xref:BloombergLP/bdlt/Date/isValid-04.adoc[_» more&period;&period;&period;_]#

== Return Value

* `true` if `year` and `dayOfYear` form a valid `Date` value
* `true` if `year`, `month`, and `day` form a valid `Date` value

== Parameters

[cols="1,4"]
|===
| Name| Description
| *year*
| year of the candidate date
| *dayOfYear*
| day of year of the candidate date
| *month*
| month of the candidate date
| *day*
| day of month of the candidate date
|===


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