【发布时间】:2013-04-16 13:05:06
【问题描述】:
我的日期时间字段报告遇到以下问题:
#Error
我检查 null 或空,但我总是得到这个错误
我试试这个:
=IIf(CDate(Fields!recommendationDate.Value)=CDate("1/1/0001"),Nothing,
CDate(Fields!recommendationDate.Value).ToShortDateString())
=IIf(FormatDateTime(Fields!recommendationDate.Value,2)=CDate("1/1/0001"),"",FormatDateTime(Fields!recommendationDate.Value.Value,2))
=IIF(Fields!recommendationDate.Value is nothing, nothing,Format(CDate(Fields!recommendationDate.Value),"dd/MM/yyyy"))
【问题讨论】:
-
你试过没有
CDate的格式吗?我会在这里进行一些测试。
标签: c# asp.net datetime reporting-services ssrs-2008