formatDate

Purpose

Allows the formatting of java.util.Date instances using the same patterns defined by the SimpleDateFormat class.

Examples

<g:formatDate format="yyyy-MM-dd" date="${date}"/>

<g:formatDate date="${date}" type="datetime" style="MEDIUM"/>

<g:formatDate date="${date}" type="datetime" style="LONG" timeStyle="SHORT"/>

<g:formatDate date="${date}" type="time" style="SHORT"/>

Description

Attributes

Source

Show Source