what language and what database are you using?
If Access, then when building your sql query, put # signs arounf the date field. And if SQL Server, then put sinle quotes:
for Access:
sql="INSERT INTO test(t1,t2) VALUES (#" & t1.Text & "#,#" & t2.Text & "#)"
for SQL Server:
sql="INSERT INTO test(t1,t2) VALUES ('" & t1.Text & "','" & t2.Text & "')"
Main Topics
Browse All Topics





by: albinjosephPosted on 2006-05-01 at 06:10:29ID: 16576956
Hi
yy");
Please find the below code.
SimpleDateFormat sdf= new SimpleDateFormat("MM/dd/yy
Date dt = sdf.parse(tr.value);
Albin Joseph
*advertising removed by Netminder 31 Aug 2006*