datetime passing to reportviewer
I got an error:
The string was not recognized as a valid DateTi开发者_如何转开发me. There is a unknown word starting at index 0
Ron, you have to parse the data since it's of type nvarchar.
For example:
DataTable dt = GetData();
DateTime startDate;
DateTime.TryParse(dt.Rows[0]["StartDate"].ToString(), out startDate);
精彩评论