I Have a datatable in which itwo column Datetime and userid.
I have to get maxtime and min thime with where condition date and userid in C#
I am using this query
DateTime OutDateTime = Convert.ToDateTime(record.Compute("MAX(DateTime)", "UserId='" + enrNo + "' and Tdate='" + DateTimee + "'")); DateTime InDateTime = Convert.ToDateTime(record.Compute("MIN(Tdate)", "UserId='" + enrNo + "' and Tdate='" + DateTimee + "'"));
Please help me

Mageshwaran RPosted Oct 9, 2020, 9:36 AM
Sachin SinghPosted Oct 9, 2020, 9:10 AM
Jignesh KumarPosted Oct 9, 2020, 9:06 AM
Amit GuptaPosted Oct 9, 2020, 6:01 AM