|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-08-20 20:05 UTC] rasmus@php.net
-Status: Open
+Status: Not a bug
[2015-08-20 20:05 UTC] rasmus@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 21:00:02 2025 UTC |
Description: ------------ The function date() doesn't return the expected value. Test script: --------------- <?php $date = '2014-12-29'; $time = strtotime($date); $date = date('Y-m-d', $time); echo "$date\n"; // Display : 2014-12-29 $date = date('Y-W', $time); echo "$date\n"; // Display : 2014-01