I was afraid you were going to say that.
Do you know how I can format a date variable?
On my form, the values for the entry_date field and expiration_date field are set, as so:
$entry_date = date("d-M-y");
$exp_date = date("d-M-y", strtotime("+14 days"));
<!-- Here's the html portion -->
<tr valign="top">
<td><b>Entry Date</b></td>
<td><? echo $entry_date; ?></td>
<td><b>Expiration Date</b></td>
<td colspan="2"><input type="text" name="expdate" value="<? echo $exp_date; ?>"></td>
</tr>
As you can see, the Expiration Date field is editable. If a user enters in 17-Feb-09, can you explain how I can reformat this field to the "Y-m-d H:i:s" format that mysql uses? And, for that matter, how I can reformat the $entry_date to match this pattern?