• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

inserting a date in MS Access

 
anupama rc
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi freinds
i am doing this servlet program where i have to insert dates into a data base...i accept the date as a string ...convert into Date object ...but when i try toinsert into the data base ...its giving me an error saying Syntax error (operator missing)..
I have converted the string into date object using SimpleDateFormat class...and its parse mtd
pls help

------------------
anu
 
Joe Paolangeli
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When creating the date object for the insert try using java.sql.Date instead of java.util.Date
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic