I have a field in sql table of type date with value 1944-01-02. Now I am writing a java function which will pull this data from the database and use it as a java method param. How should I handle it?
method looks like this:
void search(Date date);
I want to put 1944-01-02 in to the method param, but java complier complain does not matter if I import java.util.date
or java.sql.date
.