[#BloombergLP-bdlt-DatetimeFormatter] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::DatetimeFormatter :relfileprefix: ../../ :mrdocs: This `class` provides a specifier formatter for printing `Datetime` objects. == Synopsis Declared in `<bdlt_datetimeformatter.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_CHAR> class DatetimeFormatter; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdlt/DatetimeFormatter/2constructor.adoc[`DatetimeFormatter`] [.small]#[constructor]# | Create an object in its default initial state. | xref:BloombergLP/bdlt/DatetimeFormatter/extraSections.adoc[`extraSections`] | Return the `bslfmt::FormatSpecificationParser::Sections` flags that apply to this value type. | xref:BloombergLP/bdlt/DatetimeFormatter/formatDefault.adoc[`formatDefault`] | Format `value` to `out` using the default datetime layout. | xref:BloombergLP/bdlt/DatetimeFormatter/formatIso8601.adoc[`formatIso8601`] | Format `value` to `out` using the ISO 8601 datetime layout. | xref:BloombergLP/bdlt/DatetimeFormatter/formatNextSpecifier.adoc[`formatNextSpecifier`] | Format one recognized specifier from `*specInOut` into `*outIt`. | xref:BloombergLP/bdlt/DatetimeFormatter/parseDefault.adoc[`parseDefault`] | Parse a date time that will be formatted in default mode. | xref:BloombergLP/bdlt/DatetimeFormatter/parseIso8601.adoc[`parseIso8601`] | Parse a date time that will be formatted in Iso8601 mode. | xref:BloombergLP/bdlt/DatetimeFormatter/parseNextModifier.adoc[`parseNextModifier`] | Parse a format modifier from the front of `*specInOut` if present. | xref:BloombergLP/bdlt/DatetimeFormatter/parseNextSpecifier.adoc[`parseNextSpecifier`] | Parse the next recognized datetime format specifier from `*specInOut`. | xref:BloombergLP/bdlt/DatetimeFormatter/postprocess.adoc[`postprocess`] | Read post‐processed fields from the specified `spec` that are relevant to this specifier formatter. | xref:BloombergLP/bdlt/DatetimeFormatter/totalWidth.adoc[`totalWidth`] | Return the anticipated formatted width for the specified `value`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#