|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #70036 DateTime::createFromFormat/date_create_from_format return value not "formatted"
Submitted: 2015-07-09 18:14 UTC Modified: 2016-10-05 17:02 UTC
From: chealer at gmail dot com Assigned: cmb (profile)
Status: Closed Package: Date/time related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
42 + 42 = ?
Subscribe to this entry?

 [2015-07-09 18:14 UTC] chealer at gmail dot com
date_create_from_format() returns a DateTime object. That object is not "formatted" in any way, yet the functions's description reads:
Returns new DateTime object formatted according to the specified format

Clearly, what the author meant was:
Returns a new DateTime object representing the date and time specified by the specified string, which was formatted in the specified format
From manual page:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-10-05 15:00 UTC]
-Status: Open +Status: Verified -Type: Bug +Type: Documentation Problem -Package: Documentation problem +Package: Date/time related -Assigned To: +Assigned To: cmb
 [2016-10-05 17:02 UTC]
Automatic comment from SVN on behalf of cmb
Log: Fix #70036: DateTime::createFromFormat/date_create_from_format return value not "formatted"
 [2016-10-05 17:02 UTC]
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.
 [2016-10-05 17:02 UTC]
-Status: Verified +Status: Closed
 [2020-02-07 06:06 UTC]
Automatic comment on behalf of cmb
Log: Fix #70036: DateTime::createFromFormat/date_create_from_format return value not "formatted"
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 01 12:01:29 2024 UTC