1. SetDate with Statement? stackoverflow.comWith PreparedStatement, you just call SetDate and be done with it. How do you pass in a Date with a regular Statement? |
2. JDBC Prepared Statement . setDate(....) doesn't save the time, just the date.. How can I save the time as well? stackoverflow.comI have the following Query :
I have the following prepared statement
If i check ... |
3. preparedStatement.setDate and java.util.Date coderanch.com |
4. doubts in setDate(i,date,cal) API of preparedStatement coderanch.comWhat error are you getting ? Check out my code below /** * Author Ujjwal B Soni * Code Added : 29th December 2008 * Last Modified 31st July 2009 */ import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; public class DemoPreparedStatementSetDate { public static java.sql.Date getCurrentJavaSqlDate() { java.util.Date today = new java.util.Date(); return new java.sql.Date(today.getTime()); } public static Connection getConnection() throws Exception ... |