>>Cannot assign value of type 'java.lang.String' to property 'dateStart' of type 'java.util.Date'
This is because by default there is no converter for java.util.Date ONLY for java.sql.Date. So no conversion will be used for your "" to proper java.util.Date value. So you could :
(1) do as bloodredsun mentioned, no initial
or (2) write your own convertor for java.util.Date
or (3) use java.sql.Date instead but you have to use value as "2001-12-12" (default format) to initiate it.
Main Topics
Browse All Topics





by: bloodredsunPosted on 2005-10-28 at 06:49:55ID: 15178891
1./change <form-property name="dateStart" type="java.util.Date" initial=""></form-property >
/egs/java. util/CompD ates.html
to <form-property name="dateStart" type="java.util.Date" ></form-property>
2./Comparing dates can be done like this http://www.javaalmanac.com