Home » Developer & Programmer » Forms » how to get time from server?
how to get time from server? [message #86305] Mon, 20 September 2004 21:34 Go to next message
samsul
Messages: 4
Registered: August 2004
Junior Member
hai

can anyone teach me or show me the coding on how to get the time from the server.

my pc is connected to the server and i want to get the time from it.

 

thanks for helping

 
Re: how to get time from server? [message #86322 is a reply to message #86305] Tue, 21 September 2004 05:44 Go to previous messageGo to next message
Steve
Messages: 190
Registered: September 1999
Senior Member
samsul -

if you are in a SQL environment then the code would be simply:

select to_char(sysdate, 'HH:MI:SS') from dual

You can also add AM/PM indicators if you like, or drop the seconds from the end. I would recommend reading on how to handle temporal data in Oracle SQL, the information is invaluable!

There are other ways of obtaining the current date/time in other environments (VB, JBDC, Beans, etc.)

HTH
Steve
Re: how to get time from server? [message #86326 is a reply to message #86322] Tue, 21 September 2004 15:48 Go to previous message
eboy
Messages: 17
Registered: August 2004
Junior Member
thanks steve
Previous Topic: Examples Please
Next Topic: Interview question set on Oracle forms
Goto Forum:
  


Current Time: Mon Sep 09 20:26:55 CDT 2024