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
Need to fix compatability issue with windows 7 64 bit for vfp version 7 (and 8 and 9)
@Xml.nodes - Query
Forms, tab control and subforms
Form update in Access 2007
VBA querytables.refresh not working
Access 2003 delete buttons greyed out
Cannot Install SP4 on Windows 2000 Server
how do I reopen a closed company that was accidently closed in Microsoft Great Plains 10
Get Buying Cost From Current Stock
Interfaces and Data Provider