This one’s on the house
| Compatibility: | EE1 & EE2 |
|---|---|
| Latest release: | 2.1.0 (released 2011-03-29) |
| Licensing: | CC Attribution-Share Alike 3.0 |
Compatibility
The download contains both the EE1 and EE2 version. Note: the EE1 compatible
version uses the tag {exp:nice_date}.
Installation
ExpressionEngine 2
- Download and unzip Low Nice Date
- Copy the
ee2/low_nice_datefolder to your/system/expressionengine/third_party/directory - All set!
ExpressionEngine 1
- Download and unzip Low Nice Date
- Copy the
ee1/pi.nice_date.phpfile to your/system/plugins/directory - All set!
Template tags
| Parameter | Description |
|---|---|
date |
Any date string. Required. |
format |
Formatting code, just like the Date Variable Formatting. Required. |
localize |
Localizes date to current member, defaults to no. |
Examples
{exp:low_nice_date date="2007-05-20" format="%F %j%S, %Y" localize="yes"}
This will output something like May 20th, 2007.
{exp:low_nice_date date="{segment_3}-{segment_4}-01" format="%F %Y"}
For a url like http://www.domain.com/index.php/blog/archive/2007/05/, this will output May 2007.