Class: DateTimeConverterFactory

Oracle® JavaScript Extension Toolkit (JET)
5.0.0

E90577-01

QuickNav

DateTimeConverterFactory

Version:
  • 5.0.0
Since:
  • 0.6
Module:
  • ojvalidation-datetime
A factory implementation to create the built-in datetime converter of type oj.IntlDateTimeConverter.
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

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
Returns:
Type
oj.IntlDateTimeConverter