I'm using a textbox with this string value in ASP code
<TD><b>DATE1:</b></TD><TD><INPUT TYPE="text" NAME="FDESDE" value="01/01/2000" SIZE=10 MAXLENGHT=10></TD>
SELECTSQL = "SELECT * FROM tabla1 INNER JOIN tabla2 ON tabla1.cod = tabla2.cod where campo2='002' campo3= DATE('" & FDESDE & "')"
and it doesn't work!
but it works with this command
SELECTSQL = "SELECT * FROM tabla1 INNER JOIN tabla2 ON tabla1.cod = tabla2.cod where campo2='002' campo3=(SELECT CURRENT DATE AS FEC FROM SYSIBM.SYSDUMMY1)"
I'm using db2 6 and the field CAMPO3 in my table1 have this value from control center DB2
campo3
2009-01-20
2009-02-15
2009-03-21
2009-04-01
2009-05-07
2009-06-30
Please how to convert string value of my variable to db2 date format in ASP.
Thanks
