Value of '1/1/0001 12:00:00 AM' is not valid for 'MaxDate'. 'MaxDate' must be greater than or equal
  • hi i i filling datetimepicker control from database so i am facing exception Value of '1/1/0001 12:00:00 AM' is not valid for 'MaxDate'. 'MaxDate' must be greater than or equal to MinDate.
    Parameter name: MaxDate


    what should i do.
  • 3 Comments sorted by
  • MinDate of DateTimePicker is {1. 1. 1753 0:00:00} and MaxDate is {31. 12. 9998 0:00:00}. You can easily get these informations from DateTimePicker properties.
  • there is two property of datatimepicker is MinDate and MaxDate make sure value you want to set is should be under of this range.
  • I'm fetching my date from database to bind it to datetime control and it is between the min and max date but still showing error.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, or you want to Ask a new Question, Please Login or Create a new Account by Clicking below

Login with Facebook

Tagged

Popular Posts of the Week

Optimum Creative