格式化报告服务中的日期(Formatting Date in reporting services)

编程入门 行业动态 更新时间:2024-10-27 19:28:05
格式化报告服务中的日期(Formatting Date in reporting services)

我正在编写报告服务报告。 我想将报告的标题改为:

审核日志 - 2011年6月1日至2011年6月6日

目前我读它:

审核日志 - 06/01/2011至06/06/2011

我正在使用的表达方式是

="Audit Log - " + Parameters!DateStart.Value + " To " + Parameters!DateEnd.Value

我确信这很容易,我只是使用报告服务的新手。 我正在Visual Studio 2005中构建报告,如果它有所作为的话。

谢谢

I am building a report in reporting services. I would like the title of the report to read:

Audit Log - June 1, 2011 to June 6, 2011

Currently I have it reading:

Audit Log - 06/01/2011 to 06/06/2011

The expression I'm using is

="Audit Log - " + Parameters!DateStart.Value + " To " + Parameters!DateEnd.Value

I'm sure this is pretty easy I'm just fairly new to using reporting services. I'm building the report in visual studio 2005 if it makes a difference.

Thanks

最满意答案

使用Format()函数如下:

="Audit Log: " + Format(Parameters!DateStart.Value,"MMMM dd, yyyy") + " To " + =Format(Parameters!DateEnd.Value,"MMMM dd, yyyy")

Use the Format() function as follows:

="Audit Log: " + Format(Parameters!DateStart.Value,"MMMM dd, yyyy") + " To " + =Format(Parameters!DateEnd.Value,"MMMM dd, yyyy")

更多推荐

本文发布于:2023-07-16 03:56:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1123402.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:日期   报告   Formatting   services   reporting

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!