Monday, January 26, 2009

Converting a java.util.Date object into a java.sql.Date object


public class ConvertDate {
   public java.sql.Date convertDate(java.util.Date date) {
      return new java.sql.Date(date. getTime() );
   }
}

No comments:

Post a Comment