Abstract
Optional
options: DateTimeFormatOptionsServices accessor. Note: Not passed into the constructor because this object should be created before ValidationServices itself. So it gets assigned when ValidationService.dataTypeFormatterService is assigned a value.
Provides access to services.
Protected
hasProtected
Abstract
expectedThe DataTypeLookup key(s) that this class supports.
Protected
optionsProtected
Abstract
supportsEvaluates the parameters to determine if its format() method should handle the value with those same parameters. It should always match the DataTypeLookupKey. It does not have to evaluate the cultureID, as there are implementations where the format() function handles eve
Such as 'en-US' and 'en'
Use its format() method when true. Do not use format() when false.
Protected
prepProtected
matchingProtected
Abstract
getCreates a formatted string for the value, applying the goals of the DataTypeLookupKey and making it culture specific.
Protected
formatIf the value is a Date object, it uses Intl.DateTimeFormat. If it is null, it returns the empty string. Anything else is an error.
Optional
options: null | DateTimeFormatOptionsif Null, it uses the options supplied in the constructor or DefaultOptions function.
Generated using TypeDoc v0.25.12
Base class for formatting Date objects using the Intl library with its DateTimeFormat feature. Subclasses will generally use its FormatDateTime method, which needs to have Intl.DateTimeFormatOptions to determine how Intl.DateTimeFormat will work. Pass the options in the constructor or omit the options for default formatting.