[Solved] How to validate whether date selected or not in datetimepicker control in C#? [closed]

[ad_1]

Change it to like this, remember that the value needs to be a date that is coming from the DateTimePicker.

if(empRegBdatePicker.Value.Date == DateTime.Now.Date)
{
    //birthdate is today
} 

0

[ad_2]

solved How to validate whether date selected or not in datetimepicker control in C#? [closed]