积极答复者
SSRS Report中关于日期格式处理函数FormatDateTime

问题
答案
-
你好,
为了解决你的问题,你在表达式中试着使用Format。这个方法允许你按照你自己的要求来定义格式而不受区域设置的影响。具体的使用,请参照下列文章:
http://sqlserver.posterous.com/formatting-dates-in-ssrs
http://derbyleeds.wordpress.com/2010/10/20/format-datetime-expression-in-ssrs/
你也可以直接使用下列方法来修改:
=Format(Globals!ExectionTime,"yyyy/MM/dd")
Best wishes,
Catherine
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已编辑 Catherine Shan - MSFTModerator 2012年12月4日 3:03
- 已标记为答案 Catherine Shan - MSFTModerator 2012年12月6日 2:01
全部回复
-
你好,
为了解决你的问题,你在表达式中试着使用Format。这个方法允许你按照你自己的要求来定义格式而不受区域设置的影响。具体的使用,请参照下列文章:
http://sqlserver.posterous.com/formatting-dates-in-ssrs
http://derbyleeds.wordpress.com/2010/10/20/format-datetime-expression-in-ssrs/
你也可以直接使用下列方法来修改:
=Format(Globals!ExectionTime,"yyyy/MM/dd")
Best wishes,
Catherine
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已编辑 Catherine Shan - MSFTModerator 2012年12月4日 3:03
- 已标记为答案 Catherine Shan - MSFTModerator 2012年12月6日 2:01