I hava a Transaction datatable with “Amount” field.
I want to get Sum (Amount) for 7 days
How can I do it in C# expression?
Thank you
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I assume your transaction table is called ‘Transaction’ and have a ‘Date’ field;
EDIT: Of course const in C# means compile time constant and TimeSpan does not have optional parameters, so I have update the code