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 PHP documentation is really comprehensive when it comes to date manipulation, so finding a suitable solution should be quite easy. Here's one possible solution:

```
function displaydate($plus_days) {
  return date('l, F jS, Y', strtotime('+' . $plus_days . ' day'));
}

```

<http://uk3.php.net/manual/en/function.strtotime.php>
I used this snippet to count simple estimated delivery date. It's based on dianovich snippet but his(her) snippet returns error. This works fine:

```
function displaydate( $atts ) {
    $atts = shortcode_atts( array(
        'day'   => '0'     
    ), $atts );
    $plus_days = $atts['day'];
    return date_i18n('j F Y', strtotime('+' . $plus_days . ' day'));
}
add_shortcode('delivery_date', 'displaydate');

```

Shortcode to show:
[delivery\_date day="5"]