Utility class with functions for Date conversion
Node | Description |
---|
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. |
"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
|
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
|
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
|
Converts a data type specific date to a UniversalDate.
Param | Type | DefaultValue | Description |
---|---|---|---|
vDate | any |
Date |
|
oType | sap.ui.model.SimpleType |
Data type |
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 |