Custom Template: Jsrender Date Format

Hi,
I am using this code in a custom template of an report in section CustomTemplateGroupHeader:

{td class=“tg-imwf” colspan=“8”>Abschlusstag: {{:Day}}

Currently the output is like this: 2010-12-24

I need this date value in this format: 24.12.2010

Where can I start?
Is there any example for such formating arround?

Thanks.

mpol_ch

Just write your PHP code in “Row_Rendered” server event to change the format of that date.

Hi mobhar,

thank you for your response.
I used the following code by Row_Rendered but it does not helped.
$this->Tag->ViewValue = date(‘d.m.Y’,strtotime($this->Tag->CurrentValue));

I need this for Custom Template of an report and the output is beeing exported into word and excel.
I thought that is something to do with Jsrender, isn’t it?

mpol_ch

What is the type of “Tag” field?

IT is Type of Date.

Hi,
I solved my problem with the following code in area of “CustomTemplateGroupHeader2”

Abschlusstag: {{{Tag}}}

This is showing the correct date format as defined in PHPMAker.

Thanks.

mpol_ch