TextBox1.Text = (DateTime.Now.Year - dateTimePicker1.DisplayDate.Date.Year).ToString();
Here we can solve just year of birthday
But
How can we get year of Month and Day
TextBox1.Text = (DateTime.Now.Year - dateTimePicker1.DisplayDate.Date.Year).ToString();
Here we can solve just year of birthday
But
How can we get year of Month and Day
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.