• Post Reply Bookmark Topic Watch Topic
  • New Topic

java.util.Date to java.sql.Date  RSS feed

 
Lucy Smaile
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do you convert a java.util.Date to java.sql.Date? (I presume this is what you have to do to store it with preparedStatement.setDate?)
Thanks
 
Jamie Robertson
Ranch Hand
Posts: 1879
MySQL Database Suse
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Lucy Smaile:
How do you convert a java.util.Date to java.sql.Date? (I presume this is what you have to do to store it with preparedStatement.setDate?)
Thanks

 
Lucy Smaile
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks v much!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!