Date Minus 1 Day
-
How can I subtract a day from my current date in php?
Here’s how I call the date now:
<?php the_date('l, F j, Y', '<h2>', '</h2>'); ?>So, again, it posts today’s date but I want it to post yesterday’s date.
Thanks!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Date Minus 1 Day’ is closed to new replies.