Setting DateTimePicker Value to DateTime.MaxValue results in error

Welcome to Wisej Support.
Questions, suggestions and plain old bugs - are all welcome here!
0
0

This line of code:

dateTimePicker1.Value = System.DateTime.MaxValue;

results in the following error:

The added or subtracted value results in an unrepresentable DateTime. Parameter name: value

I hit this in 1.3.65, I do not believe I hit this in previous version.

Thanks,
Andrew

 

  • You must to post comments
0
0

It must be related to WJ-8208:¬†Wisej.Web.DateTimePicker formats the DateTime value using the server’s time zone. In order to format the date/time using the client’s time zone we added the DateTime.ToClientTime() extension without taking in the consideration the min max boundaries.

Logged as regression WJ-8269. Will be fixed in the upcoming build.

 

  • You must to post comments
Showing 1 result
Your Answer
Post as a guest by filling out the fields below or if you already have an account.
Name*
E-mail*
Attachment
File Name Size
There are currently no files uploaded.
Maximum number of files 5, maximum file size 3.9MB.
Supported file formats: zip pdf gif jpg bmp png cs vb theme json