php - How to check if date() function minus one? -
Is it possible to check whether the date is ("j-1f-1")
? ??
I'm a Noah so some scripts will help! Postdate is in one format: 14th October
.
if ($ postdate == date ("jf")) {$ postdate = "today";} This works ...
But I also need to check for the $ postdate
for "tomorrow
" value too!
Question: How to check for tomorrow? That is, date () - 1 somehow
Thanks again
date ('jf', strotome ('- 1 day')); "Yesterday" timestamp will be retrieved if: ($ postdate == date ('jf', strontem ('1 day'))) {$ postdate = "tomorrow" }}
Comments
Post a Comment