Class sap.ca.ui.model.type.DateModule: sap/ca/ui/model/type/Date

extends SimpleType
known direct subclasses: DateTime, Time

This class represents date simple types.

Deprecated API:Deprecated API:Since version 1.28. This control has been made available in sap.ui.core. Please use sap.ui.model.type.Date instead! This control will not be supported anymore.

Constructor Summary
new sap.ca.ui.model.type.Date(oFormatOptions?, oConstraints?)Constructor for a Date type.
Method Summary
sap.ca.ui.model.type.Date.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ca.ui.model.type.Date with name sClassName and enriches it with the information contained in oClassInfo.
sap.ca.ui.model.type.Date.getMetadata()Returns a metadata object for class sap.ca.ui.model.type.Date.
Methods borrowed from class sap.ui.model.Type
Methods borrowed from class sap.ui.base.Object
Constructor Detail
new sap.ca.ui.model.type.Date(oFormatOptions?, oConstraints?)
Constructor for a Date type.
Parameters:
{object}oFormatOptions? options used to create a DateFormat for formatting / parsing. Supports the same options as DateFormat.getDateInstance. You can use an extra boolean option UTC to format in UTC ({style: "short", UTC: true}).
{object}oFormatOptions.source? additional set of options used to create a second DateFormat object for conversions between string values in the data source (e.g. model) and Date. This second format object is used to convert from a model string to Date before converting the Date to string with the primary format object. Vice versa, this 'source' format is also used to format an already parsed external value (e.g. user input) into the string format expected by the data source. Supports the same set of options as DateFormat.getDateInstance.
{object}oConstraints? value constraints.
{Date|string}oConstraints.minimum? smallest value allowed for this type. Values for constraints must use the same type as configured via oFormatOptions.source
{Date|string}oConstraints.maximum? largest value allowed for this type. Values for constraints must use the same type as configured via oFormatOptions.source
Deprecated:
Deprecated API:Since version 1.28. This control has been made available in sap.ui.core. Please use sap.ui.model.type.Date instead! This control will not be supported anymore.
Method Detail
sap.ca.ui.model.type.Date.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ca.ui.model.type.Date with name sClassName and enriches it with the information contained in oClassInfo.

For a detailed description of oClassInfo or FNMetaImpl see Object.extend.

Parameters:
{string}sClassName name of the class to be created
{object}oClassInfo? object literal with informations about the class
{function}FNMetaImpl? alternative constructor for a metadata object
Returns:
{function} the created class / constructor function
sap.ca.ui.model.type.Date.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.ca.ui.model.type.Date.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
getOutputPattern()