Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DateTimePicker Min Max Values

Status
Not open for further replies.

jake007

Programmer
Jun 19, 2003
166
US
I am trying to set the Min/Max Date on a DTP in VB.Net 2005. I set the Min date to Today(), which works fine, what I need to do is set the Max date to Today() + 7 days. No matter what I try I come up with 1 error or another. How can I programmatically set the Max date to Today() + 7?

Jake
 
You really should post the last code you tried so we can help you. This is one of many ways to do it. If it doesn't work post.
Code:
Date.Now.AddDays(7)

-I hate Microsoft!
-Forever and always forward.
 
NP. Glad that did it.

-I hate Microsoft!
-Forever and always forward.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top