I have this code to show the date and time:
PHP Code:
<?php
// Show the date
$date = date("d M Y \a\t g:i A");
echo 'The Current date and time is: <b>';
echo $date;
echo '</b>';
?>
The problem I have is that im trying to get it to display
'date' at 'time'
But when it runs it displays
'date' a 'time'
Im pretty sure 'a' and 't' are code for date/time so I put a \ infront of them to stop them being used, im guessing theres something really silly ive done wrong but cant really see it unfortunatly.