Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

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

Starting Member

2 Posts

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

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?

Almighty SQL Goddess

38200 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
Go to Top of Page

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  
 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.02 seconds. Powered By: Snitz Forums 2000