Thread: Retrieving the server time and date -- java??

Retrieving the server time and date -- java??

From
Carlos
Date:

Hi Forum,

Could someone give me java code to retrieve the date and time of the server by calling the Now function via JDBC?

Thanks in advance,

Re: Retrieving the server time and date -- java??

From
Dave Cramer
Date:
select now();

Dave

On Mon, 2003-06-09 at 12:15, Carlos wrote:
> Hi Forum,
>
> Could someone give me java code to retrieve the date and time of the
> server by calling the Now function via JDBC?
>
> Thanks in advance,
--
Dave Cramer <Dave@micro-automation.net>


Re: Retrieving the server time and date -- java??

From
"Carlos Oliva"
Date:
Tx.

-----Original Message-----
From: Dave Cramer [mailto:Dave@micro-automation.net]
Sent: Tuesday, June 10, 2003 5:59 AM
To: Carlos
Cc: 'pgsql-jdbc@postgresql.org'
Subject: Re: [JDBC] Retrieving the server time and date -- java??


select now();

Dave

On Mon, 2003-06-09 at 12:15, Carlos wrote:
> Hi Forum,
>
> Could someone give me java code to retrieve the date and time of the
> server by calling the Now function via JDBC?
>
> Thanks in advance,
--
Dave Cramer <Dave@micro-automation.net>