Hi Colleagues,
I am able to resolve that issue using below code, But with this the dropdown is showing the same time for every value.
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 = Date(oTimeFormat.parse(fValue));
}
return oTimeFormat.format(new Date(fValue));
}
}
});
oItemTemplate2.bindProperty("enabled", "enabled");
dropbox.bindItems("/d/results", oItemTemplate2);
Best regards,
Rohit