E
edcha
I am trying to use the following Aggregate Calculation.
string time = trabajadoresTable.Compute ( "Sum(DateTime)" ,
"") .ToString();
I need to sum the hours in a column with type DateTime.
If they be numbers this work good
"trabajadoresTable.Compute("Sum(pago)", "")"
But with the type DateTime's in a column make me the following error
In the System.Data.DataException was generated the error:
Invalid use of Aggregate Calculation Sum( ) and the type DateTime.
how I sum the hours in one column if it the type is DateTime
Thanks
string time = trabajadoresTable.Compute ( "Sum(DateTime)" ,
"") .ToString();
I need to sum the hours in a column with type DateTime.
If they be numbers this work good
"trabajadoresTable.Compute("Sum(pago)", "")"
But with the type DateTime's in a column make me the following error
In the System.Data.DataException was generated the error:
Invalid use of Aggregate Calculation Sum( ) and the type DateTime.
how I sum the hours in one column if it the type is DateTime
Thanks