Birthdate
how to search employee birthdate on datetime picker using month and date on date time picker.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
VulpesRank #55 · 29.2K reputationPosted Nov 2, 2012, 8:22 AM EDT
private void btnSearch_Click(object sender, EventArgs e)
{
int day = 1; // say
int month = 1; // say
dateTimePicker1.Value = new DateTime(DateTime.Today.Year, month, day);
dateTimePicker1.Select();
SendKeys.Send("%{DOWN}");
}