A typical datepicker code that is generated for your domain classes is shown below: <g:datepicker name="dateOfJoin" value="${objInstance?.dateOfJoin}" /> Note: This code is autogenerated when you choose to create Controllers and Views by running the grails command "generate-all" for any domain class. It displays the Date, Month, year drop downs. Also it shows Drop downs to select Hrs and Mins. To remove the Hr and Mins dropdown a "precision" attribute should be used. <g:datepicker name="dateOfJoin" value="${obj?.dateOfJoin}" precision="day" /> To enable Null dates in your domain object The default datepicker options do not allow to choose a blank date.
techno diary