This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JDBC 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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "storing date in database" Watch "storing date in database" New topic
Author

storing date in database

jen plecerda
Greenhorn

Joined: Mar 02, 2007
Posts: 4
hi!

can anyone help me how to store a string that i converted as a java date in a database?..im 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
 
Similar Threads
Date Format
Date or Timestamp?
Date format
EntityManager.find() returns null
conversion from Date ojbect to Date object