Plugin Directory

AP Style Dates and Times

Formats the date and time of your posts and comments into Associated Press Style.

Download Version 2.1

This plugin changes the format of the dates and times of your posts and comments to match Associated Press Style. This is perfect for news and magazine sites running WordPress and for those blog writers with a penchant for style consistency.

Here's what it does:

  • Adds periods to "am" and "pm" so they become "a.m." and "p.m."
  • Removes extraneous zeros when the time is at the top of the hour. "1:00 p.m." becomes "1 p.m."
  • Changes "12:00 a.m." to "midnight" and "12:00 p.m." to "noon."
  • Correctly abbreviates months in the date to match AP Style rules. Those are: "Jan." "Feb." "March" "April" "May" "June" "July" "Aug." "Sept." "Oct." "Nov." "Dec."

Optional features:

  • If the post year is the same as the current year, you can set it to not print the year in the date output to adhere to AP Style rules.
  • If the date of the post is the same as the current date, you can set it too print "today" instead of the date. Technically that's not an AP Style rule, but a common newspaper style nonetheless.
  • You can have it capitalize the words "today," "noon" and "midnight."

Therefore, if your post was published at 1:13 in the afternoon on September 22, 2007, this plugin will make the time look like "1:13 p.m." and date look like "Sept. 22, 2007"

Author: Tom Chambers

Requires: 2.5 or higher
Compatible up to: 2.9.2
Last Updated: 2010-3-3 Downloads: 3,230

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(2 ratings)

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

Log in to vote.

100,1,1
100,1,1
100,1,1