Well, here is the code I've tried so far.
public class CustomDateEditorRegistrar implements PropertyEditorRegistrar {
public void registerCustomEditors(PropertyEditorRegistry registry) {
registry.registerCustomEditor(Date.class, new CustomDateEditor(new SimpleDateFormat("MM/dd/yyyy hh:mm a"), true))
registry.registerCustomEditor(Date.class, new StructuredDateEditor(new SimpleDateFormat("MM/dd/yyyy"), true))
}
}
I am using a calendar jQuery plugin and a regular grails DatePicker, if I just use the first one, I always get an error with the regular grails Date Picker. If I use both, I don't get an error anymore.. However, the calendar saves just the date and not the time? Anyway to fix this? :(