[#BloombergLP-bdlt-Date-isValidYearDay] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/Date.adoc[Date]::isValidYearDay :relfileprefix: ../../../ :mrdocs: Return `true` if `year` and `dayOfYear` form a valid `Date` value. == Synopsis Declared in `<bdlt_date.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static bool isValidYearDay( int year, int dayOfYear); ---- == Description Return `true` if the specified `year` and `dayOfYear` represent a valid value for a `Date` object, and `false` otherwise. `year` and `dayOfYear` represent a valid `Date` value if they correspond to a valid date as defined by the Unix (POSIX) calendar confined to the year range `[1 .. 9999]` inclusive. See {Valid Date Values and Their Representations} for details. == Return Value `true` if `year` and `dayOfYear` 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 |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#