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
Setting a Column's Required Property to False using VBA
Loop thru controls in from header
Chunk rows of records into 64K blocks and create .xls files..
MS Office 2007 Security on Windows 2008 Terminal Server
Windows 2008 Terminal Services
How do I find and delete data in excel using a list of data?
Acer Aspire 3500 Laptop - Can I delete a Partition and increase main Drive Partition
Creating Add/Edit forms for levels of BOM assemblies in Access
How do I release unused space from a single table in SQL Server?
Outlook 2007: How to build a custom button on Client Outlook ribbon to add a message to the blocked sender list, and move the message to the hidden message box