格式化ReportView日期字段

= Year(Fields!ModifiedDate.Value).ToString() + "-" + Month(Fields!ModifiedDate.Value).ToString() + "-" + Day(Fields!ModifiedDate.Value).ToString()

= System.Convert.ToDateTime(Fields!ModifiedDate.Value).ToString("yyyy-MM-dd")

你可能感兴趣的:(view)