I have a form with datepicker. This datepicker comes up with the current date automatically so is not usually selected by the user. Unfortunately because the field is not selected it is not validated and the attached table is not updated with the date. Im struggling with code to validate a field. Can anyone help me. The filed nate is dateTB.

Can you not just set the datepicker's value (in code) to DateTime.Today.Date on the form load method when you're adding a record (i'm assuming this is a create date)?