to make use of the Date Picker UI-Element I declared my Context-Field of type Date which is mapped to java.sql.Date. (Why?)
Now I want to show today's Date as default value.
The following code gives me e.g dd.MM.yy as value in my InputField. I want the format dd.MM.yyyy which is what DatePicker gives back.
How can I achieve that?
java.util.Calendar cal = new GregorianCalendar();
java.sql.Date bookingDate = new java.sql.Date(cal.getTime().getTime());