Note that there are some explanatory texts on larger screens.

plurals
  1. POChange format of column in SSRS during export
    primarykey
    data
    text
    <p>I have some date columns in SSRS that, when our internal users view/review data, need to be shown in the usual mm/dd/yyyy format. The users also dump this report to Excel. In the export, I need to convert the date to a string and format it yyyymmdd.</p> <p>Is it possible to change the output format of a column only during an export?</p> <p>EDIT: (based on comments below)</p> <p>I love the phrase "almost exactly" :) </p> <p>The other question mentioned below was asking WHY dates appear a certain way in Excel AFTER exporting but I wanted to change the format BEFORE or AS the export happened. My question had NOTHING to do with regional settings as the question referred to below mentions.</p> <p>What I needed was for the date to show on the report (at the report server, on-screen) as 8/13/2013, let's say, but when I export it to Excel I needed a format of 20130813. </p> <p>To be helpful to those that read this, adding a parameter to the report header, allowing the user to change a selection to run the report in two separate "modes" worked for me.</p> <p>What I did was add a reportMode param, give it two values, say ModeA and ModeB. I defaulted the param dropdown to ModeA. In the date column, I simply checked for how the param was set and changed format of the date, through an expression prior to the user running the report. This way the users can have ModeA to use when they are checking data but when they export this to excel for our external customers, who require the dates to be in the other format, they can choose ModeB, run the report again and then export.</p> <p>Hope this helps somebody else.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload