Datalist : sorting by date not working properly

Confluence User - 21 May, 2019

Hello,

I'm having an issue when sorting a datalist using a date column. The sorting appears not to be considering the datetime to perform a chronological sorting but the string value and performs an alphabetical sorting (hence using only the "day" part in my case).

Am I missing something?

Thanks for the help

Baptiste

datalists

2


22 May, 2019
confluenceUser
confluenceUser

Hi Camilo, Indeed it is JDBC! I get the point. Because everything is "string" in the database, it cannot know it is a date field. Is there a workaround with JDBC or should i use only form source? Thanks a lot, Baptiste

22 May, 2019
confluenceUser
1
confluenceUser

OK Solved.

When using JDBC, it is necessary to use STR_TO_DATE(field, "format") to ensure that the column is a date.

Thanks for the insight Camilo.

Cheers

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print