Question: I'm currently using this code in wordpress:

```
// [date]  
function displaydate(){  
return date('l, F jS, Y');  
}  
add_shortcode('date', 'displaydate');  
// end date

```

--

What I want to do is add another shortcode that would display todays date +1day.

So I could write something like this:

'...offer runs out [todays date +1day]'

Anyone know how to do this?

Answer: 
The easiest way in PHP would be using the [strtotime](http://php.net/manual/en/function.strtotime.php) function.

As for your code you would add:

```
return date('l, F jS, Y', strtotime('+1 day'));

```

Based on your original code a 'shortcode' called 'tomorrow' would look like this:

```
// [tomorrow]  
function displaydate_tomorrow(){  
    return date('l, F jS, Y', strtotime('+1 day')); 
}  
add_shortcode('tomorrow', 'displaydate_tomorrow'); 
// end tomorrows date

```
This was the only direct answer to this question that I could find and I thank you very much for supplying the answer.

I also played with the variables as I wanted to show an accurate date and by changing day to hours and entering -5 to GMT time as I'm in Toronto area, it worked beautifully!

For newbies, the full code that I am using is as follows:

```
 function displaydate(){
     return date('l, F jS, Y', strtotime('-5 hours')); 

 }
 add_shortcode('date', 'displaydate');

```

Then, I enter the following on the page where I wish the date to appear on my wordpress pages as:

```
Last update of this page: [date]

```

and the result is perfect.