Date truncating
My PHP code is as follows:
<form action="newtest.php" method="post">
<?php
$sql ="SELECT distinct(DATE_FORMAT(toddate,'%D %M %Y')) as c_date from t_table order by toddate desc";
?>
<select name="DateValue">
<?php
//echo "<select name = Year>";
while(list($c_date) = mysql_fetch_row($res)) {
echo "<option value={$c_date}>{$c_date}";
}
echo"</select>";
?>
<INPUT TYPE="submit" value="HIT me">
newtest.php`**
<?php
echo "$_POST[DateValue]";
?>
My problem is when I print DateValue, the date is getting truncated.For example if I select 23rd August 2003, the value which I get is 23rd.
Can anyone tell me why the date is getting truncated?
Thanks
Jc