I am using SAPUi5 for Time.The time fValue is PT12H50M00S.When showing on dropdownbox it is showing Nan,result is shown as NaN:NaN:NaN PM,How to convert this to values.
var oItemTemplate2 = new sap.ui.core.ListItem({
text: {
path: "SlotTi",
formatter: function(fValue) {
jQuery.sap.require("sap.ui.core.format.DateFormat");
var oTimeFormat = sap.ui.core.format.DateFormat.getTimeInstance({
pattern: "KK:mm:ss a"
});
if (fValue != undefined || fValue != null) {
fValue = fValue.toString();
}
return oTimeFormat.format(new Date(fValue));
}
}
});