Hi,
You can use "to_date('01/01/1970','MM/DD/YY')+c3/(60*60*24)+5.5/24"
function to manipulate it. Here +5.5 is GMT difference from IST time. This
value can vary based on your location. So you can always add(+diff) or
remove(-diff) that amount of time from date field. At place of c3(create
time) you can take any of your date field. So SQL cab be like this:
select to_char(to_date('01/01/1970','MM/DD/YY
HH:MI:SS')+c3/(60*60*24)+5.5/24,'MM/DD/YY HH:MI:SS') from t369 where
rownum<2
Regards,
Tarun
_____
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of CONDREA, Daniel
Sent: Friday, December 08, 2006 4:11 PM
To: [email protected]
Subject: Re: Retrieving Date from SQL
**
Database independent:
1) Define a display only field of type date
2) Set value 01/01/1970 char in the newly created field
3) Define a result field of type date/time
4) (2) step + integer value = (3) step
_____
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Veeral J Oza
Sent: Friday, December 08, 2006 12:16 PM
To: [email protected]
Subject: Retrieving Date from SQL
Hi All,
Remedy data type "Date" is stored as an integer in the SQL Server database.
It is stored as the number of seconds from 1st Jan 1970. Now I am using a
SELECT query to read this value in a character (There is a requirement that
I cannot read this into a date field on Remedy). The value returned is an
integer. Is there a way through which I can convert this integer value into
date?
Environment:
ARS 6.3
SQL Server 2000.
Regards,
Veeral Oza,
Application Analyst,
Wipro Technologies
Cell: +91 9422771736
Desk: +91 20 39102370
The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain proprietary, confidential or privileged information. If you are not
the intended recipient, you should not disseminate, distribute or copy this
e-mail. Please notify the sender immediately and destroy all copies of this
message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should
check this email and any attachments for the presence of viruses. The
company accepts no liability for any damage caused by any virus transmitted
by this email.
www.wipro.com
__20060125_______________________This posting was submitted with HTML in
it___ __20060125_______________________This posting was submitted with HTML
in it___
_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the
Answers Are"