Microsoft
Software
Hardware
Network
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("anagraf
icabt")
strselect ="pod=TRIM('IT023E00092157
') AND TO_DATE('27/01/2010','DD/M
M/YYYY') BETWEEN contract_date AND NVL(contract_date_final,TO
_DATE('01/
01/2090','
DD/MM/YYYY
'))"
Trovato = dt_anagraficabt.Select(str
Select, 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
I need help with an ODBC Connection with Access 2007
IntoPath-How to populate a non-repeating field with a repeating field value on a condition
Exchange 2007 booking a conference room
Using a date varible in where clause of SQL
Change IP Address of Windows 2000 Domain Controller
Deleting blank rows
How to identify the correct globalization for date types ?
Not recognizing next years dates in Dataset Search
Windows 7 remote desktop causes black screen and am forced to cold boot
Vs2003 VB.NET I can't find ListItem