Constructor
new DateTimeConverterFactory()
A factory implementation to create the built-in datetime converter of type
oj.IntlDateTimeConverter.
- Source:
Example
create an instance of the jet datetime converter using the options provided
var dtcf = oj.Validation.converterFactory(oj.ConverterFactory.CONVERTER_TYPE_DATETIME);
var dateOptions = {year: '2-digit', month: 'numeric', day: 'numeric'};
var dateConverter = dtcf.createConverter(dateOptions);
Methods
-
<static> createConverter(options) → {oj.IntlDateTimeConverter}
-
Creates an immutable (jet) datetime converter instance.
Parameters:
Name Type Argument Description options
Object <optional>
an object literal used to provide an optional information to initialize the jet datetime converter. For details on what to pass for options, refer to - Source:
Returns: