By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,946 Members | 697 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,946 IT Pros & Developers. It's quick & easy.

datepicker in

P: 18

How can I design a datepicker using javascript or some other tools in, I dont want to use a calendar as it occupies much space. I want a dropdown which allows me to select the date required from that dropdown. I have googled for the same, got some answers which didnt work for me. Please some one help me out to solve this.

Mar 4 '09 #1
Share this Question
Share on Google+
3 Replies

Expert 2.5K+
P: 3,525
Use a regular combobox (listbox) that you have pre-filled with all the dates for the next month or so?
Mar 4 '09 #2

P: 18
It should be any date which the user prefers to select, and I can't pre-fill all the dates in a combobox.
Mar 5 '09 #3

Expert 2.5K+
P: 3,525
You don't want to use a calendar control because of the amount of real estate it uses, but you want to give complete range of all time past and present to choose from. You're going to have to be creative in your choice of controls then.

Use a text box and have the user put in a date then you parse it. Expect that the user will format it in a way that can cause an error.

Use a couple list boxes, one for month (1-12) one for data (1-31) and a numeric updown for year.

I don't have your design layout to see what works with the look you've created. There is only so many ways you can present day, month, year and you want to do it in less than 175pixelsx175pixel calendar. You're going to have to be creative.
Mar 5 '09 #4

Post your reply

Sign in to post your reply or Sign up for a free account.