944,021 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 1501
  • ASP.NET RSS
May 3rd, 2007
0

I don't want yesterdays Date!

Expand Post »
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
Similar Threads
Reputation Points: 215
Solved Threads: 6
Posting Whiz in Training
jamello is offline Offline
219 posts
since Oct 2006
May 4th, 2007
0

Re: I don't want yesterdays Date!

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
Reputation Points: 15
Solved Threads: 9
Junior Poster
cutepinkbunnies is offline Offline
143 posts
since Apr 2006
May 7th, 2007
0

Re: I don't want yesterdays Date!

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

Reputation Points: 10
Solved Threads: 1
Newbie Poster
jabijohn is offline Offline
11 posts
since Oct 2006
May 7th, 2007
0

Re: I don't want yesterdays Date!

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.
Click to Expand / Collapse  Quote originally posted by jabijohn ...
DateTimePicker1.MinDate = System.DateTime.Today()
'put the above line on load of the form
Reputation Points: 215
Solved Threads: 6
Posting Whiz in Training
jamello is offline Offline
219 posts
since Oct 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: adding pictures?!!
Next Thread in ASP.NET Forum Timeline: Need Help Regarding MultiThreading





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC