<nerderg:datefield label='Date of birth' field='dob' bean='${myCommand}' format='dd/MM/yyyy'/>
The above tag will produce something like this (depending on CSS):
See source
Tag specific attributes
- none
Notes
- You need to include the NerdergTagLib.js library to get a date picker.
- the field/value can be a Date or String.
- a string value can be anything parseable by jChronic, like "Tommorrow 2pm"
- use format to define how the parsed date is displayed
- if the value is not parseable as a date it will not be formatted and just displayed as is.