Req #75011 [Ver->Nab]: Add month on date 31 july 2017

From: Date: Mon, 31 Jul 2017 11:54:49 +0000
Subject: Req #75011 [Ver->Nab]: Add month on date 31 july 2017
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-210430@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75011&edit=1 ID: 75011 Updated by: derick@php.net Reported by: tapask10 at gmail dot com Summary: Add month on date 31 july 2017 -Status: Verified +Status: Not a bug Type: Feature/Change Request Package: Scripting Engine problem Operating System: Windows 7, Cent OS PHP Version: 7.0 Assigned To: derick Block user comment: N Private report: N New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php +2 months adds two to the month number, making your date 31 September 2017. As that date does not exist, it rolls over to 1 October 2017. Previous Comments: ------------------------------------------------------------------------ [2017-07-31 11:16:16] tapask10 at gmail dot com Description: ------------ i am tring to add some month on date but the return coming error. Please remember that the system date should be 31 july 2017 Test script: --------------- date('M',strtotime("+2 month")); Expected result: ---------------- Sep Actual result: -------------- Oct ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=75011&edit=1

« previous php.bugs (#210430) next »