I’m using the grid control and allowing users to type in a date, but if they enter an alpha character by accident, the date goes blank. Is there a way to check the validity of a date after the user selects “Update” and let them know if something is wrong with it?
I’m using this to establish the date before storing it to the database, but I want to know if the date is actually valid first:
$shipDate = new DateTime($_POST[$rowId."_c1"]);
$shipDateFormatted = $shipDate->format('Y-m-d');