Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/reporting-services/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Reporting services SSRS 3.0 CDate格式_Reporting Services - Fatal编程技术网

Reporting services SSRS 3.0 CDate格式

Reporting services SSRS 3.0 CDate格式,reporting-services,Reporting Services,是否有人愿意提供一个示例,说明如何将SQL中显示为YYYYMMDD的日期字段转换为SSRS 3.0中的日期?我已经试过了,在我的报告运行中得到了错误响应 格式(CDate(左$(!Field,4)&“/”和中$(!Field,5,2)&“/”和右$(!Field,2)),“mm/dd/yyyy”) 非常感谢您的建议。您正在将DateTiem格式化为另一种DatetIme格式吗 试试这些: =Format(Fields!myDate.Value, “M/d/yy”) - 2/11/08 =Form

是否有人愿意提供一个示例,说明如何将SQL中显示为YYYYMMDD的日期字段转换为SSRS 3.0中的日期?我已经试过了,在我的报告运行中得到了错误响应

格式(CDate(左$(!Field,4)&“/”和中$(!Field,5,2)&“/”和右$(!Field,2)),“mm/dd/yyyy”)


非常感谢您的建议。

您正在将DateTiem格式化为另一种DatetIme格式吗

试试这些:

=Format(Fields!myDate.Value, “M/d/yy”) - 2/11/08
=Format(Fields!myDate.Value, “MM/dd/yyyy”) - 02/11/2008
=Format(Fields!myDate.Value, “d-MMMM-yy”) - 11-December-08
=Format(Fields!myDate.Value, “d-MMM-yyyy”) - 11-Dec-2008 =Format(Fields!myDate.Value, “M/d/yyyy H:mm”) - 2/11/2008 13:50
=Format(Fields!myDate.Value, “MMM-dd-yyyy”) - Feb-11-2008 
这是从