954,593 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

I don't want yesterdays Date!

Hi there people!
I need some help here. I have a scenario where I'd like users to pick any date from current date (today's date) to any date in the future. The user would not have access or be presented an opportunity to pick yesterday's date. I have some ideas swimming in my head (for instance loading up of dates into a dropdown listbox is one of them and I am actually wondering whether there is a standard control that works like that OR are there better alternatives) but want some input or other ideas from you guys .
I prefer suggestions in vb.net

What I already have is a calendar called from javascript code and unfortunately allows you to pick yesterday's date. thanks

jamello
Posting Whiz in Training
219 posts since Oct 2006
Reputation Points: 215
Solved Threads: 6
 

Have you looked into the datetimepicker control yet? You should be able to manipulate that in nearly any way imaginable.

http://msdn2.microsoft.com/en-us/library/system.windows.forms.datetimepicker.aspx

Let me know how that works out.

Jon

cutepinkbunnies
Junior Poster
146 posts since Apr 2006
Reputation Points: 15
Solved Threads: 9
 

DateTimePicker1.MinDate = System.DateTime.Today()
'put the above line on load of the form

jabijohn
Newbie Poster
11 posts since Oct 2006
Reputation Points: 10
Solved Threads: 1
 

Thanks for your reply john,

What I have in mind is that I want the dates loaded up from current date (todays date) up to a year in a drop down list box.
DateTimePicker1.MinDate = System.DateTime.Today()
'put the above line on load of the form

jamello
Posting Whiz in Training
219 posts since Oct 2006
Reputation Points: 215
Solved Threads: 6
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You