This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Date formatting in report

Tags: None
(comma "," separated)
papoteur
Registered Member
Posts
7
Karma
0

Date formatting in report

Fri Jun 03, 2022 4:35 pm
Hello,
I have created a project by importing a table from a CSV file. Then I created a report with data from this table.
One field is a date. It has been well imported, after I set the format of the column.
I see it is stored in ISO format YYYY-mm-dd.
In the report, the date is still in this format, but I would like to have it in the localised format. But I don't find in the properties something to set the format.
Have I missed something?
Is this possible?
Would it be the same if I used MySQL for storing the project?
ptijoz
Registered Member
Posts
43
Karma
0
OS

Re: Date formatting in report

Sat Jun 04, 2022 10:55 am
Hello
I also have a table where the dates are stored in YYYY-mm-dd and when displayed in a form they are displayed in dd/mm/yyyy
When you insert the "Date Piker" component what formatting do you have?

Regards
ptitjoz
papoteur
Registered Member
Posts
7
Karma
0

Re: Date formatting in report

Sat Jun 04, 2022 12:50 pm
ptijoz wrote:Hello
I also have a table where the dates are stored in YYYY-mm-dd and when displayed in a form they are displayed in dd/mm/yyyy
When you insert the "Date Piker" component what formatting do you have?

Regards
ptitjoz

In a Datepicker, the format is dd/mm/yyyy
ptijoz
Registered Member
Posts
43
Karma
0
OS

Re: Date formatting in report

Mon Jun 06, 2022 10:26 am
Hello
I am in local fr (French) and I do not encounter any problems.
don't you have a demo database to share?

https://jozvasco.eu/info/spip.php?article13

Regards
papoteur
Registered Member
Posts
7
Karma
0

Re: Date formatting in report

Mon Jun 06, 2022 1:52 pm
Hello,
Here is an exemple with a collection of dates.
https://drop.infini.fr/r/fA0tCvnKfB#BLx ... x2W5ocl6o=
https://drop.infini.fr/r/E6vhozsof4#DTT ... G+hfLQfdA=
the second list is the report as printed in PDF format.
Sorry for the external link, I don't see how to attach a file.
ptijoz
Registered Member
Posts
43
Karma
0
OS

Re: Date formatting in report

Tue Jun 07, 2022 8:31 am
Hello
I actually have the same problems.

Kexi has many limitations

in the report I can't find options to display in dd/mm/yyyy
whereas in the form it is automatically recognized.

The only solution that I found (but which is not necessarily adapted to your project) and to initially put in your csv file the desired format and to put it in text format
When importing, you must specify the format of the "text" column
Image

Image

Image

Regards
papoteur
Registered Member
Posts
7
Karma
0

Re: Date formatting in report

Tue Jun 07, 2022 8:48 am
Hello,
Thanks for you awesome work on this.
You confirm me that I didn't miss something.
What you propose can be a workaround in case that the field in not used as date, but only for displaying purpose.
Cordialement


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]