private void pushButton_Click(object sender, EventArgs e)
        {
            int oldYear = dateTimePicker1.Value.Year;
            int currentYear = dateTimePicker2.Value.Year;

            MessageBox.Show(currentYear - oldYear +1 + "세 입니다");
        }
Retrieved from http://wiki.zeropage.org/wiki.php/데블스캠프2012/넷째날/묻지마Csharp/Mission2/서민관
last modified 2021-02-07 05:29:14