This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes storing date in database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "storing date in database" Watch "storing date in database" New topic

storing date in database

jen plecerda

Joined: Mar 02, 2007
Posts: 4

can anyone help me how to store a string that i converted as a java date in a database? using mysql as a database. Thanks in advance!!!
Ricky Martaputra
Ranch Hand

Joined: Apr 04, 2005
Posts: 42
try to use PreparedStatement.
It is sorta covered in the JavaRanch Style Guide.
subject: storing date in database