If anyone can help that would be great.
I¹m trying to format a timestamp from my MySQL table (sessions)
Here¹s the code I¹m using:
<?php echo date('D,n-j-y h:i:s a',strtotime($r ow_rsSessions['date'])); ?>
If I give the timestamp a value of 8 I can get the date to work correctly
but if it¹s at 10 or 12 I get the wrong date and it comes out the same for
every record Mon,38-1-18-09:14:07 pm
Anyone have any thoughts ?
Thanks
I¹m trying to format a timestamp from my MySQL table (sessions)
Here¹s the code I¹m using:
<?php echo date('D,n-j-y h:i:s a',strtotime($r ow_rsSessions['date'])); ?>
If I give the timestamp a value of 8 I can get the date to work correctly
but if it¹s at 10 or 12 I get the wrong date and it comes out the same for
every record Mon,38-1-18-09:14:07 pm
Anyone have any thoughts ?
Thanks
Comment