Try this

 

select dateadd(s,1155032236,'1/1/1970 03:00 am')

 

kulap

  _____  

From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Luke, Brian
Sent: Saturday, December 09, 2006 3:32 AM
To: [email protected]
Subject: Re: Retrieving Date from SQL

 

This site is handy if you just want to get a general timestamp from a date
for use in ad-hoc queries:

 

http://www.onlineconversion.com/unix_time.htm

 

  _____  

From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Veeral J Oza
Sent: Friday, December 08, 2006 2:16 AM
To: [email protected]
Subject: Retrieving Date from SQL

** 

Hi All,

 

Remedy datatype "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"

Reply via email to