Quantcast
Channel: SCN: Message List - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 8124

Re: EDM.Time is not converting in SAPUI5

$
0
0

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



Viewing all articles
Browse latest Browse all 8124

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>