All Low add-ons are now owned by EEHarbor. Read the blog post.
All add-ons

Low Nice Date

Compatibility: EE1, EE2, EE3, EE4, EE5
Latest release: 3.0.0 (released 2016-12-15)
Licensing: CC Attribution-Share Alike 3.0

Compatibility

Low Nice Date is compatible with EE3+. The EE1 and EE2 compatible version are no longer under development, but are still available on Github.

Installation

  • Download and unzip Low Nice Date
  • Copy the low_nice_date folder to your /system/user/addons/ directory
  • In your Control Panel, go to the Add-on Manager and install Low Nice Date.
  • All set!

Template tags

Main single tag

Parameters for low_nice_date tag
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.

Range tag pair

Parameters for Range tag
Parameter Description
from Any date string or Unix timestamp. Defaults to now.
to Any date string or Unix timestamp. Defaults to now.
Variables for Range tag
Variable Description
{days} Number of days (multiples of 24 hours) between the two dates.
{months} Number of months between the two dates.
{years} Number of years between the two dates.

Example

{exp:low_nice_date:range from="{date_one}" to="{date_two}"}
  {if days == 0}
    The two dates are on the same day
  {if:else}
    The two dates span {days} days
  {/if}
{/exp:low_nice_date:range}