简体   繁体   中英

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.

在此输入图像描述

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
  • MMM the month
  • d the day of the month
  • yyyy the year on 4 digits

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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