[#BloombergLP-bdlt-DateFormatter_Cache] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::DateFormatter_Cache :relfileprefix: ../../ :mrdocs: This `class` facilitates faster access to a `Date` object during printing by batching access to several fields in a single call during construction and caching them for quick access later. == Synopsis Declared in `<bdlt_dateformatter.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class DateFormatter_Cache; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdlt/DateFormatter_Cache/2constructor.adoc[`DateFormatter_Cache`] [.small]#[constructor]# | Cache a copy the specified `value` and its `year`, `month`, and `day` fields. | xref:BloombergLP/bdlt/DateFormatter_Cache/day.adoc[`day`] | Return the cached `day` field. | xref:BloombergLP/bdlt/DateFormatter_Cache/dayOfWeek.adoc[`dayOfWeek`] | Call the `dayOfWeek` accessor of the cached date and return the value. | xref:BloombergLP/bdlt/DateFormatter_Cache/dayOfYear.adoc[`dayOfYear`] | Call the `dayOfYear` accessor of the cached date and return the value. | xref:BloombergLP/bdlt/DateFormatter_Cache/month.adoc[`month`] | Return the cached `month` field. | xref:BloombergLP/bdlt/DateFormatter_Cache/year.adoc[`year`] | Return the cached `year` field. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#