Min/Max date values for calendar control

S

Steve

Hi all,
Anyone have a idea what the min and max dates the
calendar control can handle, we've seen nothing in the
documentation. We have some instances where were setting
effective dates to System.DateTime.MinValue and
System.DateTime.MaxValue, were getting errors with this
range and can shorten it up to match the limitations of
the calendar control.

Thanks,
Steve
 
K

Ken Cox [Microsoft MVP]

Strange that you're getting errors in the range, 'cause it is a long span:

DateTime Members

http://msdn.microsoft.com/library/d...pref/html/frlrfsystemdatetimememberstopic.asp

MinValue
The value of this constant is equivalent to 00:00:00.0000000, January 1, 0001.

---

MaxValue;
The value of this constant is equivalent to 23:59:59.9999999, December 31,
9999, exactly one 100-nanosecond tick before 00:00:00, January 1, 10000.

Ken


--
Microsoft MVPs have a question for *you*: Are you patched against the Worm?
http://www.microsoft.com/security/security_bulletins/ms03-026.asp



Hi all,
Anyone have a idea what the min and max dates the
calendar control can handle, we've seen nothing in the
documentation. We have some instances where were setting
effective dates to System.DateTime.MinValue and
System.DateTime.MaxValue, were getting errors with this
range and can shorten it up to match the limitations of
the calendar control.

Thanks,
Steve
 
K

Ken Cox [Microsoft MVP]

Oops. Misread what you are after. You know the min and max of the system but
want to know the min and max of the control...

Sorry

--
Microsoft MVPs have a question for *you*: Are you patched against the Worm?
http://www.microsoft.com/security/security_bulletins/ms03-026.asp



Hi all,
Anyone have a idea what the min and max dates the
calendar control can handle, we've seen nothing in the
documentation. We have some instances where were setting
effective dates to System.DateTime.MinValue and
System.DateTime.MaxValue, were getting errors with this
range and can shorten it up to match the limitations of
the calendar control.

Thanks,
Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,050
Latest member
AngelS122

Latest Threads

Top