Hi Kiran,
It is mentioned in the blog Robert mentioned.
Copying from the blog,
In the below statement, select from the pattern elements mentioned in the blog.
var timeFormat = sap.ui.core.format.DateFormat.getTimeInstance({pattern: "KK:mm:ss a"});
var timeStr = timeFormat.format(new Date(DepartureTime.ms + TZOffsetMs)); //11:00 AM
var parsedTime = new Date(timeFormat.parse(timeStr).getTime() - TZOffsetMs); //39600000
Let us know if you are looking for something else?
Thanks
Krishna