[#BloombergLP-bdlt-Datetime-year] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/Datetime.adoc[Datetime]::year :relfileprefix: ../../../ :mrdocs: Return the value of the `year` attribute of this object. == Synopsis Declared in `<bdlt_datetime.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int year() const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#