<nerderg:datetimefield label='Start' field='eventStart' bean='${myCommand}' format='dd/MM/yyyy hh:mm'/>
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 and time chooser functionality.
- 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.