Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

Export Time column to Excel

$
0
0

I know SSRS doesn't really have a time data type outside of the datetime type, but I'm trying to have a time column which exports to excel as a time data type.  I've tried a few different ways, but the only way that seems to convert over is having the textbox expression =TimeValue("00:30:00").  The problem is this creates a datetime and displays the date portion.  I've tried using custom formats of hh:mm:ss, and those look fine while running the report, but excel sees it as a negative datetime which produces a malformed value.

To clarify by example, I have a time 00:30:00 which exists in a textbox on the report that I want to export to excel as 00:30:00 but as a data type of Time so that if someone were to write excel formulas based off of those cells, it would be able to perform time-based arithmetic on them.

Any ideas?


Viewing all articles
Browse latest Browse all 10045

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>