php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #65594 date format missing
Submitted: 2013-08-30 14:04 UTC Modified: 2013-08-30 21:05 UTC
From: eric dot delcamp at gmail dot com Assigned: aharvey (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: eric dot delcamp at gmail dot com
New email:
PHP Version: OS:

 

 [2013-08-30 14:04 UTC] eric dot delcamp at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/datetime.formats.date
---

it's very hard to understand how these formats are used.

i'm PHP users since 10+ years but i spent one hour cruising the site (and finally 
had to google it) to find information located on the following page :

http://www.php.net/manual/en/datetime.formats.date.php

(D or d for instance are missing on http://www.php.net/datetime.formats.date)

it's highly misleading IMHO



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-08-30 20:00 UTC] gabri dot ns at gmail dot com
IMO, thus page are for describing format that are understood by PHP's date parser, 
like strtotime().

for formatting date, you should consult to:
http://www.php.net/manual/en/function.date.php
 [2013-08-30 21:05 UTC] aharvey@php.net
Automatic comment from SVN on behalf of aharvey
Revision: http://svn.php.net/viewvc/?view=revision&revision=331239
Log: Add verbiage explaining what the datetime.formats subpages actually document.

Fixes doc bug #65594 (date format missing).
 [2013-08-30 21:05 UTC] aharvey@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: aharvey
 [2013-08-30 21:05 UTC] aharvey@php.net
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.

I think there's confusion about what these pages actually document: these are the 
date formats that PHP's date parser accepts, rather than formatting codes for 
things like date(). I've added a paragraph to each page briefly explaining what 
it is.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 22:00:01 2026 UTC