Page 1 of 1

Default Format for Date Fields

Posted: Wed Jul 10, 2019 2:11 pm
by Abed Hamodi
Hi ,

Currently in our reports, when adding a date field (in a business object), we have to manually enter the date format next to the field in the Stimulsoft report. This looks like :

{Format("{0:dd MMM yyyy}", IATAStatisticsDataProvider.DepartureDate)}

We do this so when we export the report, the data in the field is recognized as a date field.

Please let me know if there is anyway to have stimulsoft recognize date fields as dates by default without having to add the formatting manually. So in the above example we would only need to have {IATAStatisticsDataProvider.DepartureDate} for it to recognize as a date when exporting.

Thank you in advance.

Re: Default Format for Date Fields

Posted: Wed Jul 10, 2019 9:56 pm
by Lech Kulikowski
Hello,

Please try to set the Format property of the Text component.

Also, please clarify which type of the DepartureDate column?

Thank you.

Re: Default Format for Date Fields

Posted: Thu Jul 11, 2019 10:19 am
by Abed Hamodi
Hi Lech,

Thank you for the response. I am aware of the text format option but I was hoping you could help me without using the stimulsoft designer options, if you can please assist in the c# and .NET aspect when exporting the report. I want it so if I create a date field in a business object (like the above mentioned DepartureDate example) it will have a default date format without having to manually set the formatting in the designer.

Re: Default Format for Date Fields

Posted: Fri Jul 12, 2019 1:38 pm
by Lech Kulikowski
Hello,

Unfortunately, there are no options for this. You should set the Format property.

Thank you.

Re: Default Format for Date Fields

Posted: Sun Jul 14, 2019 12:13 pm
by Abed Hamodi
Hi Lech
OK ,Thank you for the response

Re: Default Format for Date Fields

Posted: Mon Jul 15, 2019 8:43 pm
by Lech Kulikowski
Hello

Please let us know if you need any additional help.

Thank you.

Re: Default Format for Date Fields

Posted: Sat Apr 25, 2020 6:41 pm
by jserret
Lech Kulikowski wrote: Mon Jul 15, 2019 8:43 pm Hello

Please let us know if you need any additional help.

Thank you.
I have this problem, i need the date format dd-mm-yy in the cell when i export the report to excel, but y don't found this format in stimulsoft.

Re: Default Format for Date Fields

Posted: Mon Apr 27, 2020 10:41 am
by Lech Kulikowski
Hello,

Please try to set the Custom format.

Thank you.