Can anyone please help me get the HH:MM am/pm format instead of HH:MM:SS am/pm.
My javascript code is :
function prettyDate2(time){
  var date = new Date(parseInt(time));
  var localeSpecificTime = date.toLocaleTimeString();
  return localeSpecificTimel;
} 
It returns the time in the format HH:MM:SS am/pm, but my client's requirement is HH:MM am/pm.
Please help me.
 
     
     
     
     
     
     
    