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
Exchange 2010 SMTP Relay
crashed
group by and sum function in SQL
Is it possible to convert an array of objects to a generic list?
How do I retrieve text from a website
Exchange 2010 on a Domain Controller
Enabling Secure Logon in Windows XP Pro
Creating a timer on a PowerPoint slide
Word Mail Merge automated from Access with one-to-many layout
How to stop duplicate alerts from being sent to the same individual who belongs to multiple groups