datePicker

Purpose

Creates a date picker which renders as selects for the day,month,year,hour and second of the day.

Examples

<g:datePicker name="myDate" value="${new Date()}" 
              noSelection="['':'-Choose-']"/>
<g:datePicker name="myDate" value="${new Date()}" precision="day" years="${1930..1970}"/>
<g:datePicker name="myDate" value="${new Date()}" precision="day" years="[1930, 1940, 1950, 1960, 1970]"/>

Description

Attributes

Source

Show Source