Skip to Content
0

How to convert Time to edm.Time type

Jan 30 at 05:52 PM

29

avatar image

Is It possible to Convert time to "PT13H04M15S" this format in ui5.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Efim Parshin Jan 31 at 09:15 AM
0
var oType = new sap.ui.model.odata.type.DateTime({pattern : "PThh'H'mm'M'ss'S'"});
oType.formatValue(new Date(), 'string');
Share
10 |10000 characters needed characters left characters exceeded