You can make your own and customize it.
http://www.codeproject.com
Main Topics
Browse All Topicsi need a date of birth control for visual 2005.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
You can make your own and customize it.
http://www.codeproject.com
Hi, I'd recommend using a third party DateTimePicker control for your web application. Alternatively it's quite simple to create your own day/month/year selecting control... The following example would be better if you encapsulated it into a single user control project, then imported that into your application. Anyway, to give you an idea, follow these steps:
1. Add three drop down lists to your web form, name them, ddlDay, ddlMonth and ddlYear.
2. For the ddlMonth and ddlYear drop down lists, set their AutoPostBack property to true.
3. In your web form load event add:
if (!this.IsPostBack)
{
int i;
for (i = 1; i <= DateTime.DaysInMonth(DateT
this.ddlDay.Items.Add(i.To
for (i = 1; i <= 12; i++)
this.ddlMonth.Items.Add(i.
for (i = 1900; i < DateTime.Today.Year; i++)
this.ddlYear.Items.Add(i.T
}
4. Add the following method to your web form code behind:
private void ResetDays()
{
int selectedIndex = this.ddlDay.SelectedIndex;
this.ddlDay.Items.Clear();
for (int i = 1; i <= DateTime.DaysInMonth(int.P
this.ddlDay.Items.Add(i.To
this.ddlDay.SelectedIndex = (selectedIndex > this.ddlDay.Items.Count - 1) ? 0 : selectedIndex;
}
5. For the ddlMonth and ddlYear drop down lists, create SelectedIndexChanged event handlers, then call the ResetDays() method in them, so you should have something like:
protected void ddlMonth_SelectedIndexChan
{
this.ResetDays();
}
protected void ddlYear_SelectedIndexChang
{
this.ResetDays();
}
6. Finally, to get the selected date you can have something like:
DateTime dt = new DateTime(int.Parse(this.dd
int.Parse(this.ddlMonth.Se
int.Parse(this.ddlDay.Sele
this.Label1.Text = "You were born on " + dt.ToShortDateString();
--
Like I said, it would be better to encapsulate all this into a single composite user control, then you can easily reuse the control in different projects and different web forms. If you google for "C# ASP.NET DateTimePicker" you'll find a few third party controls that you can use too.
Business Accounts
Answer for Membership
by: Zephyr__Posted on 2007-06-12 at 09:03:21ID: 19267358
Hi,
;
You could use the DateTimePicker control thats available in the toolbox... to get the selected date use the Value property which returns a DateTime object:
DateTime dob = this.dateTimePicker1.Value
Then use the DateTime properties and methods, e.g.:
string year = dob.Year;
string month = dob.Month;
string day = dob.Day
string dobInShort = dob.ToShortDateString();