Hi!
Date now = new Date( System.currentTimeMillis() );
SimpleDateFormat sdf = new SimpleDateFormat( "dd/MM/yyyy hh:mm:ss" );String snow=sdf.format( now );
out.println( snow );
prints
07/02/2008 03:22:32
but when I'm trying to send a query involving 'now' string that contains the datetime, I get this on the sql database
2008-02-07 00:00:00
. Im only getting the date whereas I should be getting date and time... how to fix it?