Okay, so I made the correction but still not getting the desired result. It appears to be jumping right past the if statement. I have tried to print the check_date value to confirm that it is being received but failed to get to work as well.
Also, why did you indicate that the date formate need to be changed? I had a quick look to try and understand a reason, but from what I can the format was alright??
Quote:
'<li><label for="aoa">AOA:</label>';
echo $row['rdd'];
?>
<script>
var check_date= new date(<?php echo str_replace($row['rdd'],'-',','); ?>);
document.write(check_date);
if (check_date==null){
DateInput('ship_date');
}
else{
DateInput('ship_date', false, 'YYYY-MM-DD',check_date);
}
</script>
<?php
echo '</li>'.
|
|