reportview formatdatetime的应用
我使用的时候 =FormatDateTime(Fields!ChengyunDay.Value,DateFormat.ShortDate)
显示的结果是 2009/12/16
我想显示成 2009-12-16
该如何写?
我使用的时候 =FormatDateTime(Fields!ChengyunDay.Value,DateFormat.ShortDate)
显示的结果是 2009/12/16
我想显示成 2009-12-16
该如何写?
=FormatDateTime(Fields!字段名.Value, vbShortDate)
= Year(Fields!fiedDate.Value).ToString() + "-" + Month(Fields!fiedDate.Value).ToString() + "-" + Day(Fields!fiedDate.Value).ToString()
或
= System.Convert.ToDateTime(Fields!fiedDate.Value).ToString("yyyy-MM-dd")