[#BloombergLP-bdlt-ProlepticDateImpUtil-isValidYearDay]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/ProlepticDateImpUtil.adoc[ProlepticDateImpUtil]::isValidYearDay
:relfileprefix: ../../../
:mrdocs:

Return `true` if `year`&sol;`dayOfYear` is a valid date value&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
bool
isValidYearDay(
    int year,
    int dayOfYear);
----

== Description

Return `true` if the specified `year` and `dayOfYear` represents a valid date value, and `false` otherwise&period; Note that valid date values are (as fully defined in the component&hyphen;level documentation) in the range `&lsqb;0001&sol;01 &period;&period; 9999&sol;366&rsqb;`&period;

== Return Value

`true` if valid, and `false` otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *year*
| calendar year
| *dayOfYear*
| day of year
|===


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