I'm needing a function or at least a good idea on how to check the value of a string to see if it is in a valid date format before inserting into mysql.
I've been looking at the string functions, but if there is something easier to use, I'd rather use that.
Form to take input.
<td><p align="center"><strong>Date Issued<br> </strong><span class="style3">(Enter '00' for the day if unknown.)</span> </p></td> <td> <input name="dateIssued" type="text" maxlength="10"> <br> <span class="style3">(YYYY-MM-DD)</span><br></td>
Is my best option to loop through the the above string value?