Class: DateTimeConverterFactory

Oracle® JavaScript Extension Toolkit (JET)
16.1.0

F92237-01

Since:
  • 0.6.0
Module:
  • ojvalidationfactory-datetime

Note: This class is deprecated since 8.0.0. Directly create new instances of DateTimeConverter instead.

QuickNav

Description

A factory implementation to create the built-in datetime converter of type oj.IntlDateTimeConverter.


Usage

Javascript Import Format
define(['ojs/ojvalidationfactory-datetime'], function(validationfactoryDatetime) {
 // Application should call API on validationfactoryDatetime.DateTimeConverterFactory 
})
Typescript Import Format
//This class is not exported from module and can not be accessed in runtime.
//However to enable typechecking and ducktyping, you can access it as an interface.
import {DateTimeConverterFactory} from "ojs/ojvalidationfactory-datetime";

//To access this type in your code,
class MyClass implements DateTimeConverterFactory{
//or,
let myVariable: DateTimeConverterFactory;

For additional information visit:


A factory implementation to create the built-in datetime converter of type oj.IntlDateTimeConverter.

Methods

createConverter(options) : {oj.IntlDateTimeConverter}

Creates an immutable (jet) datetime converter instance.
Parameters:
Name Type Argument Description
options oj.IntlDateTimeConverter.ConverterOptions <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 oj.IntlDateTimeConverter.
Returns:
Type
oj.IntlDateTimeConverter