Summary
date format now working after maximum function is applied in Template
Content
Good Morning,
I am creating a simple RTF template in which I have done grouping at the template level. But in one of the fields I want to show the maximum Transaction date within the group. The transaction date is coming in canonical format from the data source. So I used extended function maximum as below:
<?xdoxslt:maximum(current-group()//TRANSACTION_DATE)?>
and set the format to dd-MMM-yy in the template.
But the output is being displayed as
Transaction Date
20170522
20170523
20161101
I also tried maximum_date function as below:
<?xdoxslt:maximum_date(current-group()//TRANSACTION_DATE)?>
But the output is even more unexpected:
1495411200
000
1495497600
000
1477958400
000
Any ideas how can I resolve this issue. Is there anyway I can use format-date over the output returned from maximum function?
Thanks,
Anwar