hello,
On a dynamic html page I have a table with a date column
[code=html]<td><?php echo $row_resultado_ viajes['fecha']; ?> </td>[/code]
I want the date to be displayed in other format so I am using the date function
[code=html]<td><?php echo date("j-m-Y",$row_resulta do_viajes['fecha']); ?> </td>[/code]
but I am getting a strange date echoed (31-12-1969). The day seems to be correct but the month and year are far from being right.
thanks,
On a dynamic html page I have a table with a date column
[code=html]<td><?php echo $row_resultado_ viajes['fecha']; ?> </td>[/code]
I want the date to be displayed in other format so I am using the date function
[code=html]<td><?php echo date("j-m-Y",$row_resulta do_viajes['fecha']); ?> </td>[/code]
but I am getting a strange date echoed (31-12-1969). The day seems to be correct but the month and year are far from being right.
thanks,
Comment