Setting DateTimePicker Value to DateTime.MaxValue results in error

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

Please first to submit.