有没有一种方法可以从RDLC-report表达式中的给定日期获取月份的最后日期。我有一个字段“ toData”,其日期为例如,如果其值为:10-04-2017。它应显示月份的最后日期,报告中的日期为30-04-2017。
Getting the Last Day of the month for a given date
=DateSerial(Year(yourDateHere), Month(yourDateHere) + 1, 0)
Formatting the date to dd-MM-yyyy like "01-01-2017"
=FORMAT(DateSerial(Year(Fields!Date.Value), Month(Fields!Date.Value) + 1, 0), "dd-MM-yyyy")
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.