cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Date format in CCO Receipt

former_member251293
Participant
0 Likes
530

Dear Experts ,

kindly i need to know if there is anyway to change the date format in CCO Receipt

as i already try but i find only $receipt/businessTransactionDate/text()

kindly advice

Regards.

Accepted Solutions (0)

Answers (3)

Answers (3)

georgiax
Explorer

Hi everyone,

In order to change the transaction date format from (YYYY/MM/DD hh:mm:ss) to (DD/MM/YYYY hh:mm:ss) you have to use the following xsl command:

<xsl:value-of select="concat(substring($receipt/businessTransactionDate/text(),9,2),substring($receipt/businessTransactionDate/text(),5,4),substring($receipt/businessTransactionDate/text(),1,4),substring($receipt/businessTransactionDate/text(),11,9))"/>

Regards.

former_member251293
Participant
0 Likes

Dear Experts ,

any idea regarding the request above ??

Regards.

gunther_sandtner2
Product and Topic Expert
Product and Topic Expert
0 Likes

Dear ahmadhamad,

Are you using the JPOS print format?

You can open the file BaseIncludesJPOS.ftl in the folder C:\SapCustomerCheckout\cco\print_templates with a Notepad ++ editor.

In line 4 you should find

<#setting datetime_format="dd.MM.yyyy HH:mm:ss"/>

which you could adjust to your needs, for example

<#setting datetime_format="yyyy.MM.dd HH:mm"/>

Remember to save your changes with a different file name and replace this new file name in CCO Configuration -> Hardware -> Print Templates -> BaseIncludesJPOS (otherwise the file will be overwritten with the next patch / release update).

Kind regards,

Gunther

former_member251293
Participant
0 Likes

Dear Gunther ,

im using SalesReceiptPrintTemplate80mm.XSLT

and i can see only regarding date is $receipt/businessTransactionDate/text()

Regards.