Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

Format date column dd-mm-yyyy while sorting on yyyy-mm-dd in table component

$
0
0
Hi all,

I have a question about the table component in cde.

I have a date column in my table formatted like "dd-mm-yyyy", however how does one implement proper sorting so that the column is not sorted by dd-mm-yyyy but instead by yyyymmdd?

I've tried fixing it via sql: concat('<!-- ',t.timedate, ' -->', date_format(t.timedate, '%d-%m-%Y')) as 'Date' but the actual <-- ... --> ugliness is of course exported with the xls export of this table as well.

I can only find solutions for numbers for "Column Formats" to alter its format(for example %.2f), but nothing describes howto handle dates.

Your help is much appreciated!

With kind regards, Rogier

Viewing all articles
Browse latest Browse all 16689

Trending Articles



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