formatDate

Format a Date in minutes/hours/days etc, relative to today. Equivalent to DateHelper.time_ago_in_words in Ruby and Date.humanized in format.js

Tag Information
Tag Class org.loom.tags.messages.FormatDateTag
Body Content scriptless
Dynamic Attributes false
Example
<l:formatDate value="${myDate}"/>

Attributes

Name Description Flags
value value to format
requiredrtexprvalue
scope If var is not null, this is the scope where the value will be stored. Possible values are page (default), request, session and application.
rtexprvalue
var if not null, the value will be stored as an attribute instead of rendered in the page
rtexprvalue