How do I echo
a date as a string such as 07/18
(month/day)?
Asked
Active
Viewed 2.7k times
1 Answers
8
<?php
echo date('m/d');
?>
If you already have the timestamp, just use it in the second parameter:
<?php
echo date('m/d', time());
?>

iautomation
- 996
- 10
- 18
-
1
-
-
John, probably because the page was already opened. Not sure. Brandon, np! Happy coding – iautomation Jul 18 '14 at 18:05