Pluggable strategy for parsing and formatting date and date-time values against one specific pattern or standard, such as an ISO format or a locale-specific numeric pattern. DateManagerV1 holds an ordered list of implementations and tries each in turn when parsing free-text input, and looks up the locale-appropriate default implementation when formatting output.


Properties

PropertyReturnsDescription
javaPatternStringJava DateTimeFormatter pattern string underlying this parser. Returns null when this parser is not based on a simple pattern string, for example a built-in ISO formatter.
jsPatternStringEquivalent client-side pattern string for this parser, used to keep browser-side date formatting in step with the server. Returns null when this parser has no client-side equivalent.
nameStringIdentifier for this parser, typically the pattern name or format name it was registered under.

Methods

getName()

Returns: String

Identifier for this parser, typically the pattern name or format name it was registered under.

getJsPattern()

Returns: String

Equivalent client-side pattern string for this parser, used to keep browser-side date formatting in step with the server. Returns null when this parser has no client-side equivalent.

getJavaPattern()

Returns: String

Java DateTimeFormatter pattern string underlying this parser. Returns null when this parser is not based on a simple pattern string, for example a built-in ISO formatter.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.