在表格中,any1是否知道如何选择指定的行并在指定列中取时间数据,然后将数据放入TimeSpan?从表格中提取时间数据并将其放入TimeSpan中
DataRow[] selectIDRow = RetailCamDataSet1.Tables["smBranchWorkingDayInfo"].Select("ID=" + ID);
foreach (DataRow row in getTimeDifference)
{
TimeSpan startTime = new TimeSpan(); //Need to put the data into the bracket instead of using hard code
TimeSpan endTime = new TimeSpan(20, 00, 00); //Hard coded
TimeSpan timeDifference = new TimeSpan();
timeDifference = endTime.Subtract(startTime);
double minutes = timeDifference.TotalMinutes;
normalCount = minutes/15;
什么样的格式是指定列中的时间数据? – 2012-03-27 01:27:50
小时:分钟:秒 hh:mm:ss – hakunabean 2012-03-27 01:30:57