User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 391,555 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,635 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 822 | Replies: 3
Reply
Join Date: Oct 2006
Location: somewhere in West-Africa
Posts: 196
Reputation: jamello is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 6
jamello's Avatar
jamello jamello is offline Offline
Junior Poster

I don't want yesterdays Date!

  #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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Mar 2006
Location: East Amherst, NY
Posts: 102
Reputation: cutepinkbunnies is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 6
cutepinkbunnies's Avatar
cutepinkbunnies cutepinkbunnies is offline Offline
Junior Poster

Re: I don't want yesterdays Date!

  #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  
Join Date: Oct 2006
Posts: 11
Reputation: jabijohn is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 1
jabijohn jabijohn is offline Offline
Newbie Poster

Re: I don't want yesterdays Date!

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

Reply With Quote  
Join Date: Oct 2006
Location: somewhere in West-Africa
Posts: 196
Reputation: jamello is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 6
jamello's Avatar
jamello jamello is offline Offline
Junior Poster

Re: I don't want yesterdays Date!

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb ASP.NET Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 9:42 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC