Voting

: min(nine, five)?
(Example: nine)

The Note You're Voting On

userexamplecom at mailinator dot com
9 years ago
Take care, if you have a DateTime Object on the 31h of January and add Da DateInterval of one Month, then you are in March instead of February.

For Example:
---
// given the actual date is 2017-01-31
$today = new DateTime('now', $timeZoneObject);
$today->add(new DateInterval('P1M'));
echo $today->format('m');
// output: 03
---

<< Back to user notes page

To Top