How do I echo
a date as a string such as 07/18
(month/day)?
<?php
echo date('m/d');
?>
If you already have the timestamp, just use it in the second parameter:
<?php
echo date('m/d', time());
?>
demo
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With