how to convert the SQL date type to Java param -


i have field in sql table of type date value 1944-01-02. writing java function pull data database , use java method param. how should handle it?

method looks this:

void search(date date); 

i want put 1944-01-02 in method param, java complier complain not matter if import java.util.date or java.sql.date.

you have convert sql date java date:

java.util.date utildate = new java.util.date(sqldate.gettime()); 

get more info @ link


Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -