BloombergLP::bdlt::DateFormatter

This class provides a specifier formatter for printing Date objects.

Synopsis

Declared in <bdlt_dateformatter.h>

template<class t_CHAR>
class DateFormatter;

Member Functions

NameDescription
DateFormatter [constructor]Create an object in its default initial state.
extraSections Return the bslfmt::FormatSpecificationParser::Sections flags that apply to this value type.
formatDefault Format value to out using the default date layout.
formatIso8601 Format value to out using the ISO 8601 date layout.
formatNextSpecifier Format one recognized specifier from *specInOut into *outIt.
parseDefault Update this object as-if parsing Date in default mode.
parseIso8601 Update this object as-if parsing Date in Iso8601 mode.
parseNextModifier Parse a format modifier from the front of *specInOut if present.
parseNextSpecifier Parse the next recognized date format specifier from *specInOut.
postprocess Read post-processed fields from the specified spec that are relevant to this specifier formatter.
totalWidth Return the anticipated formatted width for the specified value.