PHP Date Question -
I am trying to do some math using the dates in PHP. I am modifying a shoutbox and I want to implement the following functionality.
If the post date = today, the post time refund
else if date = tomorrow, return "tomorrow"
else date = X days Ago
How many days before I would use php's date functions to calculate a timestamp (timestamp is formatted in UNIX time)
< Div class = "post-text" itemprop = "text">
Try it out:
Comments
Post a Comment