I have a dt nameD DtConversationDT that contains a column called FirstCreatedATAsDate(datatype -system.dateTime).I need to filter out all the rows where time is less than 4 hors from current time using Linq .
I tried the below Linq but getting error as "Source contains no Data rows
DtConversationDT.AsEnumerable() _
.Where(Function(row) row.Field(Of DateTime)(“FirstCreatedATAsDate”).AddHours( CInt(in_Config(“PendingTime”).ToString)) >= DateTime.UtcNow) _
.CopyToDataTable()