Quantcast
Channel: SCN : All Content - SAP Manufacturing Integration and Intelligence (SAP MII)
Viewing all articles
Browse latest Browse all 1775

Change dateformat - SQL Query template

$
0
0

Hi There, I have a column ( of type datetime)  coming from SQL and it is getting formatted to to XML datetime format . (YYYY-MM-DDThh:mm:ss).

I am feeding results of query template ( XML ) to a front end component which is displaying data.

But i want to format date to different format ? Is there any way to do that on query template level ?

 

I got  a thought of looping thorough each record and apply transformation using the function datefromxmlformat(<<ipcolumn>>, "MM/dd/yyyy HH:mm:ss") but looping through each record takes toll on performance.

 

Any idea on how to apply date format transformation with out looping thorough each record ?

 

 

(I am not using MII display template,so i can not use 'date and Time Format' setting of display template) .

 

 

Thanks

Hari


Viewing all articles
Browse latest Browse all 1775

Trending Articles



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