Problem with mapping of timestamptz datatype in postgres to Java data type
843859Jun 18 2008 — edited Nov 20 2014Hi
I am using postgres database through JDBC.
I have a table that contains one of the column data type as timestamptz. Now I need to get this data into my Java application.
Can you please let me know, how to map timestamptz data type in postgres to Java data type.
I tried with resultset.getDate, resultset.getTime and resultset.getTimestamp. But it doesn't work.
Could you please suggest a solution for this.
Thanks.