Question : USING TO_DATE ORACLE FUNCTION IN SELECT STRING FROM VB.NET

i'm using Select Method for a datatable in Oracle with the following string

dt_anagraficabt = New DataTable
dt_anagraficabt = objDataSet.Tables("anagraficabt")

strselect ="pod=TRIM('IT023E00092157') AND TO_DATE('27/01/2010','DD/MM/YYYY') BETWEEN contract_date AND NVL(contract_date_final,TO_DATE('01/01/2090','DD/MM/YYYY'))"
Trovato = dt_anagraficabt.Select(strSelect, strSort)

I received the error that TO_DATE() is an undefined function.

Answer : USING TO_DATE ORACLE FUNCTION IN SELECT STRING FROM VB.NET

Use the convert function

Convert(DateTime, fieldname, 103)
Random Solutions  
 
programming4us programming4us