Skip to content

Extension org.gramar.base Tag formatNow

chrisgerken edited this page Sep 14, 2015 · 2 revisions

formatNow Tag

The formatNow tag writes the current time using the format specified.

  • string pattern - (required) The format of the date to be written. See SimpleDateFormat for more specifics.

Usage and examples

Place a taglib element within <taglibs> element in the gramar.config file in the root of your gramar:

<taglibs>
    <taglib  prefix="c" extension="org.gramar.base" />
</taglibs>

Return to org.gramar.base

Clone this wiki locally