Dates from resultset

2009-06-26 Thread Piotr Kirklewski
Hi I'm getting some values from Postgres database. The First column is Date in the following format: 2008-01-01 01:00:00 But when i put the results int the array by this command: dt[m]= new Date(res.getTimestamp(1).getNanos()); Then I get : Wed Dec 31 19:00:00 EST 1969 What's going on ? Regar

Re: Dates from resultset

2009-06-27 Thread Mark
Ok thanks Ian, makes sense, Mark On Jun 26, 11:30 pm, Piotr Kirklewski wrote: > Hi > > I'm getting some values from Postgres database. > The First column is Date in the following format: 2008-01-01 01:00:00 > > But when i put the results int the array by this command: dt[m]= new > Date(res.getT