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


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

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