|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-12-29 08:22 UTC] kalle@php.net
-Status: Open
+Status: Feedback
[2014-12-29 08:22 UTC] kalle@php.net
[2014-12-29 08:23 UTC] kalle@php.net
-Package: *Calendar problems
+Package: Date/time related
[2015-01-11 04:22 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 06:00:01 2025 UTC |
Description: ------------ $date = '28.12.2014'; // Input date echo date("Y-m-d H:i:s", strtotime("+1 day -1 seconds", strtotime($date))) // 28.12.2014 23:59:59 date("Y-m-d H:i:s", strtotime("+1 day -1 seconds +1 day", strtotime($date))); // 29.12.2014 23:59:59 Test script: --------------- <?php $date = '28.12.2014'; // Input date echo date("Y-m-d H:i:s", strtotime("+1 day -1 seconds", strtotime($date))) // 28.12.2014 23:59:59 date("Y-m-d H:i:s", strtotime("+1 day -1 seconds +1 day", strtotime($date))); // 29.12.2014 23:59:59