File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring 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.
I agree. Here's the link:
subject: storing date in database
It's not a secret anymore!