[#BloombergLP-bdlt-DateUtil-fromYmd] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/DateUtil.adoc[DateUtil]::fromYmd :relfileprefix: ../../../ :mrdocs: Return an `optional` having a `Date` with the specified `year`, `month`, and `day`, if those form a valid `Date` (see `Date::isValid`); otherwise return an `optional` without a value. == Synopsis Declared in `<bdlt_dateutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:bsl/optional-072.adoc[bsl::optional<Date>] fromYmd( int year, int month, int day); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#