WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Dynamic Dates

A WordPress plugin that calculates relative dates dynamically in your post or page.

How does it work?

Dynamic Dates uses the built-in PHP functions date and strtotime to parse and display custom dates.

How can I display a quick date?

Use one of the built-in shortcodes:

[yesterday], [today], [tomorrow], [last-month], [this-month], [next-month], [last-year], [this-year], [next-year]

Note: If you are not using WordPress 3 or later, you should substitute the hyphen in the shortcode with an underscore. Example: [this_year]

How can I display a customized date?

Use the [date] shortcode, providing format, time and relative_to options:

[date format="Format" time="Date or Time" relative_to="Date or Time"]

Examples:

Our church's next Sunday service is May 8/11

[date format="F j/Y" time="this Sunday"]

In 2009 I was two years younger

[date format="Y" time="2 years ago"]

Next year my birthday is on a Sunday!

[date format="l" time="march 4th +1 year"]

Canadian Thanksgiving is October 10th in 2011 and October 8th in 2012

[date format="l, F j, Y" time="second monday of october"]

[date format="l, F j, Y" time="second monday of october" relative_to="next year"]

How can I contact the author?

Send me a question or comment at my webpage.

Requires: 3.0 or higher
Compatible up to: 3.1.4
Last Updated: 2011-5-4
Downloads: 2,998

Ratings

5 stars
5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

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

100,1,1 100,1,1 100,1,1 100,1,1
100,2,2
100,1,1