I don't want yesterdays Date!

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Oct 2006
Posts: 216
Reputation: jamello is an unknown quantity at this point 
Solved Threads: 6
jamello's Avatar
jamello jamello is offline Offline
Posting Whiz in Training

I don't want yesterdays Date!

 
0
  #1
May 3rd, 2007
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
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 143
Reputation: cutepinkbunnies is an unknown quantity at this point 
Solved Threads: 8
cutepinkbunnies's Avatar
cutepinkbunnies cutepinkbunnies is offline Offline
Junior Poster

Re: I don't want yesterdays Date!

 
0
  #2
May 4th, 2007
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/lib...imepicker.aspx

Let me know how that works out.

Jon
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 11
Reputation: jabijohn is an unknown quantity at this point 
Solved Threads: 1
jabijohn jabijohn is offline Offline
Newbie Poster

Re: I don't want yesterdays Date!

 
0
  #3
May 7th, 2007
DateTimePicker1.MinDate = System.DateTime.Today()
'put the above line on load of the form

Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 216
Reputation: jamello is an unknown quantity at this point 
Solved Threads: 6
jamello's Avatar
jamello jamello is offline Offline
Posting Whiz in Training

Re: I don't want yesterdays Date!

 
0
  #4
May 7th, 2007
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.
Originally Posted by jabijohn View Post
DateTimePicker1.MinDate = System.DateTime.Today()
'put the above line on load of the form
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the ASP.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC