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: