ToString() and DateTime? V2106.1

Stimulsoft Reports.NET discussion
Post Reply
ChrDressler
Posts: 68
Joined: Tue Nov 09, 2010 2:05 pm
Location: Dresden

ToString() and DateTime? V2106.1

Post by ChrDressler »

Hi,

in V2015.3, I can format a nullable DateTime via DataTable1.Date1.ToString(""YY.MM.dd").
In V2016.1, this throws ToString() cant have 1 parameter (...)

This is a breaking change. :o
What can i do? I can't fix the many reports of my customers :roll:

Regards,
Christoph
Foxpro and behind
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: ToString() and DateTime? V2106.1

Post by HighAley »

Hello, Christoph.

Yes, we tried to set the type of the DateTime column automatically, but after feedback from our customers we reverted our changes.
Please, upgrade to the latest build.

If you need to get Nullable types, you could use next static options:

Code: Select all

StiOptions.Dictionary.UseNullableDateTime
StiOptions.Dictionary.UseNullableTimeSpan
Thank you.
ChrDressler
Posts: 68
Joined: Tue Nov 09, 2010 2:05 pm
Location: Dresden

Re: ToString() and DateTime? V2106.1

Post by ChrDressler »

Ok, works fine now :-)
Foxpro and behind
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: ToString() and DateTime? V2106.1

Post by Alex K. »

Hello,

We are always glad to help you!
Let us know if you need any additional help.

Thank you.
Post Reply