[英]SSRS Visual studio report changing dates between file types
For a report I created, this one date column keeps changing between PDF and excel. 对于我创建的报告,这一日期列在PDF和excel之间不断变化。
For example, in PDF it displays as '12/31/18' (which is the correct date) when I export the same report to excel, it displays as '1/1/2019'. 例如,当我将同一报告导出到excel时,在PDF中它显示为“ 12/31/18”(这是正确的日期),并显示为“ 1/1/2019”。 It is displaying all dates as the actual value + 1 day.
它会将所有日期显示为实际值+ 1天。
Anyone know what's causing this and how to fix it? 有谁知道这是什么原因以及如何解决?
You should set your textbox properties where your date column is to a date format you like. 您应该在日期列所在的位置设置文本框属性为所需的日期格式。
Textbox --> TextBox Properties --> Number
Choose category as Date and then your desired format. 选择类别作为日期,然后选择所需的格式。 It should solve the problem.
它应该解决问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.