0

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.

2
Contributors
1
Reply
2
Views
9 Years
Discussion Span
Last Post by sknake
0

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)?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.