[英]SSRS Expression To Remove Leading 0 In Date
My report displays the date time as "Friday, May 08, 2015" but I'd like to remove the 0 in the date field if the value is a single digit. 我的报告将日期时间显示为“2015年5月8日星期五”,但如果值为单个数字,我想删除日期字段中的0。
Should I use an expression to handle this? 我应该使用表达式来处理这个吗? And if so, could I get some help on the expression?
如果是这样,我可以在表达方面得到一些帮助吗?
Thanks, 谢谢,
是的,使用表达式,表达式将如下所示(用您的日期值替换Now()
)
=Format(Now(), "dddd, MMM d, yyyy")
It is best practice to use this expression: 最佳实践是使用此表达式:
=Format(Now(), "dddd, MMM d, yyyy")
with 同
dddd
the week day dddd
是工作日 MMM
the month MMM
这个月 d
the day of the month d
。该月的某一天 yyyy
the year on 4 digits yyyy
全年4位数
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.