简体   繁体   English

SSRS:文本框中的日期格式表达式

[英]SSRS : Date format expression in Text box

In the SSRS Report I need to show the below format in TextBox. 在SSRS报告中,我需要在文本框中显示以下格式。

Example: By default, it should pick a current date. 示例:默认情况下,它应该选择一个当前日期。

**Data Reporting **数据报告

18, April 2018** 2018年4月18日**

How to write the Expression? 表达式如何写?

Try Format(Now(),"MMMM dd,yyyy") which would yield April 18,2018. 尝试Format(Now(),“ MMMM dd,yyyy”),它将产生2018年4月18日。 You could check this for more formats: https://dattatreysindol.files.wordpress.com/2011/02/ssrs_date_time_formatting_demo_1016x5701.png 您可以检查更多格式: https : //dattatreysindol.files.wordpress.com/2011/02/ssrs_date_time_formatting_demo_1016x5701.png

="**Data Reporting "&Format(today,"dd, MMM yyyy")&"**"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM