namespace sap.ui.mdc.util.DateUtil

Control sample: sap.ui.mdc.util.DateUtil
Visiblity: restricted
Available since: N/A
Module: sap/ui/mdc/util/DateUtil
Application Component: CA-UI5-MDC

Utility class with functions for Date conversion


Nodes Overview

Node Description

Methods Overview

Method Description
sap.ui.mdc.util.DateUtil.createInternalType

"Clones" a given data type to use a given pattern.

sap.ui.mdc.util.DateUtil.stringToType

Converts a string based date to a Type using a given pattern.

sap.ui.mdc.util.DateUtil.typeToString

Converts a data type specific date to a string using a given pattern.

sap.ui.mdc.util.DateUtil.typeToUniversalDate

Converts a data type specific date to a UniversalDate.

sap.ui.mdc.util.DateUtil.universalDateToType

Converts a UniversalDate to data type specific date.

sap.ui.mdc.util.DateUtil.createInternalType

"Clones" a given data type to use a given pattern.

Param Type DefaultValue Description
oType sap.ui.model.SimpleType

Data type

sPattern string

Pattern based on Unicode LDML Date Format notation. http://unicode.org/reports/tr35/#Date_Field_Symbol_Table

sap.ui.mdc.util.DateUtil.stringToType

Converts a string based date to a Type using a given pattern.

Param Type DefaultValue Description
sDate string

Date

oType sap.ui.model.SimpleType

Data type

sPattern string

Pattern based on Unicode LDML Date Format notation. http://unicode.org/reports/tr35/#Date_Field_Symbol_Table

sap.ui.mdc.util.DateUtil.typeToString

Converts a data type specific date to a string using a given pattern.

Param Type DefaultValue Description
vDate any

Date

oType sap.ui.model.SimpleType

Data type

sPattern string

Pattern based on Unicode LDML Date Format notation. http://unicode.org/reports/tr35/#Date_Field_Symbol_Table

sap.ui.mdc.util.DateUtil.typeToUniversalDate

Converts a data type specific date to a UniversalDate.

Param Type DefaultValue Description
vDate any

Date

oType sap.ui.model.SimpleType

Data type

sap.ui.mdc.util.DateUtil.universalDateToType

Converts a UniversalDate to data type specific date.

Param Type DefaultValue Description
oDate sap.ui.core.date.UniversalDate

UniversalDate

oType sap.ui.model.SimpleType

Data type