|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #50084 Support a.m. and p.m. (with periods)
Submitted: 2009-11-05 00:50 UTC Modified: 2017-01-11 17:37 UTC
Avg. Score:4.1 ± 1.1
Reproduced:38 of 38 (100.0%)
Same Version:17 (44.7%)
Same OS:7 (18.4%)
From: charles dot belov at sfmta dot com Assigned:
Status: Wont fix Package: Date/time related
PHP Version: 5.2.11 OS: FreeBSD
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 — but make sure to vote on the bug!
Your email address:
Solve the problem:
20 - 16 = ?
Subscribe to this entry?

 [2009-11-05 00:50 UTC] charles dot belov at sfmta dot com
According to, date formatting offers two formats for Ante meridiem and Post meridiem:

a  	Lowercase Ante meridiem and Post meridiem  	am or pm
A 	Uppercase Ante meridiem and Post meridiem 	AM or PM

The Associated Press (AP) Stylebook specifies that these are to be written with a third format: "a.m." or "p.m." (lower case "am" and "pm" but with periods).

Please add this format to the possible time formats for Ante meridiem and Post meridiem.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-11-24 10:19 UTC]
-Package: Feature/Change Request +Package: Date/time related
 [2015-04-01 13:39 UTC] shanthiswaroop dot k at gmail dot com
This update will be very helpful!
 [2017-01-11 17:36 UTC]
-Status: Open +Status: Wont fix
 [2017-01-11 17:36 UTC]
This issue is by now more than 7 years old and targets an unsupported version of PHP.

As it is a very special usecase that can be achieved in userland code using f.e. str_replace('m', '.m.', $date->format('a')) I'm closing this.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Thu Jan 26 23:03:58 2023 UTC