Skip to Content

How to convert Time to edm.Time type

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

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