# Date and strtotime

**URL:** https://forum.kirupa.com/t/date-and-strtotime/179597
**Category:** Uncategorized
**Created:** [February 21, 2006, 4:51pm UTC](https://forum.kirupa.com/t/date-and-strtotime/179597 "2006-02-21T16:51:27Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dreamerp](https://avatars.discourse-cdn.com/v4/letter/d/fbc32d/32.png) [@dreamerp](https://forum.kirupa.com/u/dreamerp)
#### Post date: [February 21, 2006, 4:51pm UTC](https://forum.kirupa.com/t/date-and-strtotime/179597/1 "2006-02-21T16:51:27Z")

</div>

If you are using this in PHP-

```php
$expire = date('d-M-y',strtotime("+1 month"));

```

But it is the last month of the year, will it know to change the year to the new year? What if you added on 3 months at a time… or 3 days at a time and it went over the new year… ETC?

Would that work?

Thanks,

Peter
