SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Development Tools
 Reporting Services Development
 Reporting Studio and Unix Timestamp
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

maeron
Starting Member

2 Posts

Posted - 12/12/2013 :  14:57:39  Show Profile  Reply with Quote
Hi,

I have a column with UNIX timestamp (i.e 1336963597)

How can I get this value visible as a normal dateformat in a Report?

I have tried expression like =CDate(Fields!timestamp.Value) but then the value becomes "#Error".

What can I do to get it in 2013-03-10 22:43 format?

tkizer
Almighty SQL Goddess

USA
36941 Posts

Posted - 12/12/2013 :  16:08:05  Show Profile  Visit tkizer's Homepage  Reply with Quote
You'll need to do a conversion. Can you use the DateAdd function in SSRS? It's easy to convert in T-SQL, but since this is a presentation layer issue it should be handled by the report.

Tara Kizer
SQL Server MVP since 2007
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

maeron
Starting Member

2 Posts

Posted - 12/13/2013 :  01:43:33  Show Profile  Reply with Quote
If I try this. =DateAdd("ss","1970-01-01 00:00:00", Fields!timestamp.Value)I get an error

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000