The server doesn't know your 'dtStartDate' variable so you have to replace it by its value:string querySearch = "TIME_FINISH >= TO_DATE('" +dtStartDate.ToString("MM/dd/yyyy hh:mm:ss tt") +"', 'MM/DD/YYYY HH:MI:SS AM')";
//This query cannot return the records even though they existed in databasestring querySearch = "TIME_FINISH >= TO_DATE(dtStartDate, 'MM/DD/YYYY HH:MI:SS AM')";
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.