Skip to content

Setting DateTimePicker Value to DateTime.MaxValue results in error #861

Description

@itg-assistant

redcard asked 2017-05-24 19:06:33 UTC

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething is broken or behaving unexpectedly.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions