Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

Convert oData service date format to UI5 table/view model date format

$
0
0

Hi,

 

I have created an oData service that gets data from sales orders from the SAP server and one of the fields is document date which is the format "/Date(1368576000000)/". I want to display this data in a table on my UI5 application with the dates having a format MM/DD/YYYY, however I am unable to do so.

 

Note that I can parse the date if there is only 1 entity in the collection, but if there are 10,000 sales orders, then do I have to loop all the records and parse the date in each row?

 

Any help is appreciated!!

 

 

Thanks,

Charles


Viewing all articles
Browse latest Browse all 6178

Trending Articles



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